Created
June 6, 2017 19:54
-
-
Save cutecycle/4895f4941f88390907c3ba6c58361eae to your computer and use it in GitHub Desktop.
boop
This file contains hidden or 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
> a = {b: [1,2,3], c:[4,5,6]} | |
{ b: [ 1, 2, 3 ], c: [ 4, 5, 6 ] } | |
> function log(...args) { console.log(args) } | |
undefined | |
> log(a) | |
[ { b: [ 1, 2, 3 ], c: [ 4, 5, 6 ] } ] | |
undefined | |
> log(...a) | |
TypeError: (var)[Symbol.iterator] is not a function | |
at repl:1:8 | |
at sigintHandlersWrap (vm.js:22:35) | |
at sigintHandlersWrap (vm.js:73:12) | |
at ContextifyScript.Script.runInThisContext (vm.js:21:12) | |
at REPLServer.defaultEval (repl.js:346:29) | |
at bound (domain.js:280:14) | |
at REPLServer.runBound [as eval] (domain.js:293:12) | |
at REPLServer.<anonymous> (repl.js:545:10) | |
at emitOne (events.js:101:20) | |
at REPLServer.emit (events.js:188:7) | |
> log(a.b) | |
[ [ 1, 2, 3 ] ] | |
undefined | |
> console.log(...a.b) | |
1 2 3 | |
undefined | |
> log(a.b) | |
[ [ 1, 2, 3 ] ] | |
undefined | |
> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment