UNPKG

@newdash/newdash

Version:

javascript/typescript utility library

11 lines (10 loc) 324 B
export default safeGet; /** * Gets the value at `key`, unless `key` is "__proto__" or "constructor". * * @private * @param {Object} object The object to query. * @param {string} key The key of the property to get. * @returns {*} Returns the property value. */ declare function safeGet(object: any, key: string): any;