so this is now an official npm module: https://www.npmjs.com/package/length-1 …https://twitter.com/WebReflection/status/735401445504258048 …
-
-
moreover: nobody is going to wrap every Array and [-1] is the most common use case. So I kept it simple *and* fast for regular use.
-
Not having to wrap is nice, indeed.
- 1 more reply
New conversation -
-
-
more context on where does this come from: https://twitter.com/rem/status/735388914056302592 … ;-) but yes, Proxy is an alternative way. A bit too much to me.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
a) https://twitter.com/heisenbugger/status/735392994703073280 … ... b) var dup = arr; is pointless in that code ;-) just use arr, it's a closure. You know that
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.