Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
exotic / dist / types / NATIVE / isNative.d.ts
Size: Mime:
/**
 * @desc based on isNative from react-fibers, based on isNative() from Lodash
 * @since 4.0.6
 * @memberOf is
 * @func isNative
 *
 * @param {*} x value to check
 * @return {boolean}
 *
 * {@link https://esdiscuss.org/topic/spec-feedback-on-rev-6#content-2 esdiscuss-functiontostring}
 * {@link https://github.com/lodash/lodash/issues/2185 lodash-functiontostring-issue}
 * {@link http://tc39.github.io/Function-prototype-toString-revision/ functiontostring-emca}
 * {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/toString Function.toString}
 *
 * @see {@link Function.toString}
 * @see {@link functiontostring-emca}
 * @see {@link lodash-functiontostring-issue}
 * @see {@link esdiscuss-functiontostring}
 *
 * @example
 *
 * isNative(Array.prototype.push)
 * //=> true
 *
 * isNative(function normalFunction() {})
 * //=> false
 *
 */
declare function isNativeFunction(x: any): x is Function;
declare const isBuiltIn: (x: any) => boolean;
declare const isNative: (x: any) => boolean;
export { isNativeFunction, isBuiltIn, isNative };