Skip to content

Commit

Permalink
fix: simplify logic for isFunction assertion method
Browse files Browse the repository at this point in the history
  • Loading branch information
sampotts committed Nov 17, 2022
1 parent db1b89b commit de0402b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/utils/is.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const isObject = (input) => getConstructor(input) === Object;
const isNumber = (input) => getConstructor(input) === Number && !Number.isNaN(input);
const isString = (input) => getConstructor(input) === String;
const isBoolean = (input) => getConstructor(input) === Boolean;
const isFunction = (input) => getConstructor(input) === Function;
const isFunction = (input) => typeof input === 'function';
const isArray = (input) => Array.isArray(input);
const isWeakMap = (input) => instanceOf(input, WeakMap);
const isNodeList = (input) => instanceOf(input, NodeList);
Expand Down

0 comments on commit de0402b

Please sign in to comment.