Files
NapCatQQ/.pnpm-store/v3/files/6f/7ff3c1f4c3cbcde61e2025da026578dc8c96891701d8cfc754f2ceaacfdd3a87c76919afb0dfbcbc973bc44af925b99bedf0089354fb0d946ed3cffdf69185
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

18 lines
481 B
Plaintext

import baseIsNative from './_baseIsNative.js';
import getValue from './_getValue.js';
/**
* 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 = getValue(object, key);
return baseIsNative(value) ? value : undefined;
}
export default getNative;