source: imaps-frontend/node_modules/lodash-es/_getNative.js@ d565449

main
Last change on this file since d565449 was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 481 bytes
Line 
1import baseIsNative from './_baseIsNative.js';
2import getValue from './_getValue.js';
3
4/**
5 * Gets the native function at `key` of `object`.
6 *
7 * @private
8 * @param {Object} object The object to query.
9 * @param {string} key The key of the method to get.
10 * @returns {*} Returns the function if it's native, else `undefined`.
11 */
12function getNative(object, key) {
13 var value = getValue(object, key);
14 return baseIsNative(value) ? value : undefined;
15}
16
17export default getNative;
Note: See TracBrowser for help on using the repository browser.