Last active
April 9, 2019 10:41
-
-
Save brixdan/0eb329ca12aa144ad83ebca53e7a1c2b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
console.log('yay gist') | |
const o = { | |
'0': 'zero', | |
'1': 'one' | |
}; | |
console.log([].slice.call(o)); // []; | |
const oo = { | |
'0': 'zero', | |
'1': 'one', | |
length: 2 | |
}; | |
console.log([].slice.call(oo)); // ["zero", "one"]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"name": "npx-is-cool", "version": "0.0.0", "bin": "./index.js"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
[]
[ 'zero', 'one' ]