mathjs/tools/utils.js
2024-05-22 08:46:14 +02:00

7 lines
238 B
JavaScript

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