|
Last change
on this file was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago |
|
Added visualizations
|
-
Property mode
set to
100644
|
|
File size:
691 bytes
|
| Rev | Line | |
|---|
| [a762898] | 1 | /**
|
|---|
| 2 | * Checks if a given value is a native function.
|
|---|
| 3 | *
|
|---|
| 4 | * This function tests whether the provided value is a native function implemented by the JavaScript engine.
|
|---|
| 5 | * It returns `true` if the value is a native function, and `false` otherwise.
|
|---|
| 6 | *
|
|---|
| 7 | * @param {any} value - The value to test for native function.
|
|---|
| 8 | * @returns {value is (...args: any[]) => any} `true` if the value is a native function, `false` otherwise.
|
|---|
| 9 | *
|
|---|
| 10 | * @example
|
|---|
| 11 | * const value1 = Array.prototype.push;
|
|---|
| 12 | * const value2 = () => {};
|
|---|
| 13 | * const result1 = isNative(value1); // true
|
|---|
| 14 | * const result2 = isNative(value2); // false
|
|---|
| 15 | */
|
|---|
| 16 | declare function isNative(value: any): value is (...args: any[]) => any;
|
|---|
| 17 |
|
|---|
| 18 | export { isNative };
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.