mathjs/tools/utils.js
2019-07-20 13:46:31 +02:00

9 lines
272 B
JavaScript

// helper function to safely check whether an object as a property
// copy from the function in object.js which is ES6
function hasOwnProperty (object, property) {
return object && Object.hasOwnProperty.call(object, property)
}
exports.hasOwnProperty = hasOwnProperty