Skip to content

Commit

Permalink
Export Array.isArray directly [perf]
Browse files Browse the repository at this point in the history
  • Loading branch information
overlookmotel committed Feb 1, 2022
1 parent e4cface commit 05b4efc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ import getGlobalThis from 'globalthis';
* NB `isBuffer()` is omitted and `isObject()` is different from `core-util-is`'s implementation
*/

export function isArray(arg) {
return Array.isArray(arg);
}
export const {isArray} = Array;

export function isBoolean(arg) {
return isType('boolean', arg);
Expand Down

0 comments on commit 05b4efc

Please sign in to comment.