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
function omap(object, cb) { | |
return Object.fromEntries(Object.entries(object).map(cb)); | |
} | |
const mappable = { | |
map(cb) {return omap(this, cb)} | |
} | |
const abc = { | |
a: 1, |
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
class Property { | |
constructor(name, value) { | |
this.arr = [name, value]; | |
} | |
} | |
class Name extends Property { | |
constructor("name", "Owen") // static constructor, values are passed directly to "super". | |
/* | |
constructor() { |
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
Play this game by going to https://www.puzzlescript.net/play.html?p=88c1f7434eb361c1cf9aa56901e8a9c9 |
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
See comments for link to play. |