mirror of
https://github.com/josdejong/mathjs.git
synced 2025-12-08 19:46:04 +00:00
9 lines
272 B
JavaScript
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
|