|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 11 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
483 bytes
|
| Line | |
|---|
| 1 | var baseIsNative = require('./_baseIsNative'),
|
|---|
| 2 | getValue = require('./_getValue');
|
|---|
| 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 | */
|
|---|
| 12 | function getNative(object, key) {
|
|---|
| 13 | var value = getValue(object, key);
|
|---|
| 14 | return baseIsNative(value) ? value : undefined;
|
|---|
| 15 | }
|
|---|
| 16 |
|
|---|
| 17 | module.exports = getNative;
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.