Skip to content

Instantly share code, notes, and snippets.

@ElectricImpSampleCode
Last active November 26, 2019 15:07
Show Gist options
  • Save ElectricImpSampleCode/1c871c315c425eb58fc4 to your computer and use it in GitHub Desktop.
Save ElectricImpSampleCode/1c871c315c425eb58fc4 to your computer and use it in GitHub Desktop.
Squirrel array apply() example
local myArray = [true, true, false, false, true];
myArray.apply(function(value) {
return !value;
});
// myArray now equals [false, false, true, true, false]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment