-
-
Notifications
You must be signed in to change notification settings - Fork 650
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert several lodash functions to internal utils
- Loading branch information
1 parent
8631fc4
commit bcaba06
Showing
9 changed files
with
62 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/** | ||
* Checks if `value` is classified as a `Function` object. | ||
* @param {*} value The param to check if it is a function | ||
*/ | ||
export function isFunction(value) { | ||
return typeof value === 'function'; | ||
} | ||
|
||
/** | ||
* Checks if `value` is classified as a `Number` object. | ||
* @param {*} value The param to check if it is a number | ||
*/ | ||
export function isNumber(value) { | ||
return typeof value === 'number'; | ||
} | ||
|
||
/** | ||
* Checks if `value` is classified as a `String` object. | ||
* @param {*} value The param to check if it is a string | ||
*/ | ||
export function isString(value) { | ||
return typeof value === 'string'; | ||
} | ||
|
||
/** | ||
* Checks if `value` is undefined. | ||
* @param {*} value The param to check if it is undefined | ||
*/ | ||
export function isUndefined(value) { | ||
return value === undefined; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters