3 ms·
I don't think this will work, when I just tried to add a property in a template function I get: TypeError: Cannot define property foo, object is not extens
by tln 8y ago
I don't think this will work, when I just tried to add a property in a template function I get:
TypeError: Cannot define property foo, object is not extensible
Cool idea though
- spankalee 8y agoYou don't add properties to the strings object, but use is as a key into a WeakMap.