Sha256: ec6459ef5d79052ba873fd5b75a04a03796d12fa17069dfe7774e903a101b0d7
Contents?: true
Size: 456 Bytes
Versions: 153
Compression:
Stored size: 456 Bytes
Contents
var isNative = require('../lang/isNative'); /** * Gets the native function at `key` of `object`. * * @private * @param {Object} object The object to query. * @param {string} key The key of the method to get. * @returns {*} Returns the function if it's native, else `undefined`. */ function getNative(object, key) { var value = object == null ? undefined : object[key]; return isNative(value) ? value : undefined; } module.exports = getNative;
Version data entries
153 entries across 80 versions & 8 rubygems