Legend:
- ✏️ method changes
this
. - 🔒 method does not change
this
.
Array<T>.prototype.*
:
concat(...items: Array): T[]
🔒 ES3
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
function getLessVariables(file) { | |
var themeContent = fs.readFileSync(file, 'utf-8') | |
var variables = {} | |
themeContent.split('\n').forEach(function (item) { | |
if (item.indexOf('//') > -1 || item.indexOf('/*') > -1) { | |
return | |
} | |
var _pair = item.split(':') | |
if (_pair.length < 2) return; | |
var key = _pair[0].replace('\r', '').replace('@', '') |
class HelloWorld | |
def initialize(name) | |
@name = name.capitalize | |
end | |
def sayHi | |
puts "Hello #{@name}!" | |
end | |
end | |
hello = HelloWorld.new("World") |