isNative source npm

_.isNative(value)

Checks if value is a native function.

Arguments

  1. value (*)

    The value to check.

Returns (boolean)

Returns true if value is a native function, else false.

Example

_.isNative(Array.prototype.push);
// => true

_.isNative(_);
// => false