I just noticed IDEA / JSHint telling me that an object literal which contains a property named "create" overrides a method in Object.
The literal is essentially:
module.exports = {email:{create:"[email protected]"}};
And (obviously?) Object has a create method defined in EcmaScript5.js
/**
@param {Object} proto
@param {Object} [props]
@static
@return {Object}
*/
Object.create = function(proto,props) {};
Is this something that could cause an obscure problem down the line? I'm guessing that this reserved method doesn't apply to literals, or objects which haven't been instantiated with a default constructor. Just curious.