Javascript - Tag
2017
-
▸
JavaScript lookbehind RegEx alternative
Workaround for JavaScript's lack of regex lookbehind using a two-step replace-and-split approach with a marker character to match conditional commas.
2016
-
▸
JS Quirks: stringified numbers
JavaScript quirk: stringified negative binary, octal, and hex numbers like '-0x1' return NaN when converted to numbers because only decimal literals can have signs per ECMAScript spec.
-
▸
Sane ECMAScript 6 Generators
Comparing ES6 Generators to Python generators - shows key difference where breaking out of a for-of loop closes the generator in JavaScript but not in Python.
2014
-
▸
Node.js - modules and exports
Understanding Node.js module system - explains the difference between module.exports and exports, and why reassigning exports breaks the reference to module.exports.