Add is.boundFunction() (#31)
This commit is contained in:
parent
89fc424975
commit
319982a09c
3 changed files with 28 additions and 1 deletions
|
|
@ -95,6 +95,7 @@ namespace is { // tslint:disable-line:no-namespace
|
|||
|
||||
export const generatorFunction = isFunctionOfType('GeneratorFunction');
|
||||
export const asyncFunction = isFunctionOfType('AsyncFunction');
|
||||
export const boundFunction = (value: any) => function_(value) && !value.hasOwnProperty('prototype');
|
||||
|
||||
export const regExp = isObjectOfType('RegExp');
|
||||
export const date = isObjectOfType('Date');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue