Add is.boundFunction() (#31)

This commit is contained in:
Darren Scerri 2017-11-10 19:11:35 +01:00 committed by Brandon Smith
parent 89fc424975
commit 319982a09c
3 changed files with 28 additions and 1 deletions

View file

@ -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');