Created
October 5, 2017 14:22
-
-
Save easierbycode/d2a9cf9cab2d26b18207d9d0cc1de1aa to your computer and use it in GitHub Desktop.
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
class Foo extends Array {} | |
let arr = Foo.from(['zero','one','two','three']) | |
console.log( arr instanceof Foo ) | |
// true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment