atum
Version:
A Procedural Graph Based Javascript Library
9 lines (8 loc) • 410 B
JavaScript
/**
* A utility file with helper functions that can be used to aid in the
* development of the package.
*/
;
// Used for testing if an object contains a particular property
// http://stackoverflow.com/questions/7174748/javascript-object-detection-dot-syntax-versus-in-keyword/7174775#7174775
export const has = (obj, prop) => { return Object.prototype.hasOwnProperty.call(obj, prop); };