tomayac’s avatartomayac’s Twitter Archive—№ 18,116

  1. The Object.define() method can be useful if you want to extend existing objects like Intl, as I do in my js-input-masking-polyfill library (github.com/tomayac/js-input-masking-polyfill/blob/b7945b5e0457c42b136e602e48ab97aea2662d45/src/index.js#L29-L37). ⁦@aakansha1216⁩ has just published a good 👏 introduction to the topic: aakansha.dev/hacking-javascript-objects