UNPKG

@antv/layout

Version:
32 lines (26 loc) 879 B
import { __require as require_baseIsNative } from './_baseIsNative.js'; import { __require as require_getValue } from './_getValue.js'; var _getNative; var hasRequired_getNative; function require_getNative () { if (hasRequired_getNative) return _getNative; hasRequired_getNative = 1; var baseIsNative = require_baseIsNative(), getValue = require_getValue(); /** * 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; } _getNative = getNative; return _getNative; } export { require_getNative as __require }; //# sourceMappingURL=_getNative.js.map