-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
edd23d6
commit 36b545b
Showing
20 changed files
with
53 additions
and
51 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export * from './number/index.js'; | ||
export * from './object/index.js'; | ||
export * from './isinstance.js'; | ||
export * from './isnull.js'; | ||
export * from './isundefined.js'; |
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 |
---|---|---|
@@ -1,11 +1,10 @@ | ||
|
||
|
||
var isinstance = function ( type, obj ) { | ||
export function isinstance ( type, obj ) { | ||
|
||
return obj !== null && | ||
obj !== undefined && | ||
obj.constructor.prototype === type.prototype; | ||
|
||
}; | ||
} | ||
|
||
exports.isinstance = isinstance; |
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 |
---|---|---|
@@ -1,9 +1,8 @@ | ||
|
||
|
||
var isnull = function ( obj ) { | ||
export function isnull ( obj ) { | ||
|
||
return obj === null; | ||
|
||
}; | ||
} | ||
|
||
exports.isnull = isnull; |
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 |
---|---|---|
@@ -1,9 +1,8 @@ | ||
|
||
|
||
var isundefined = function ( obj ) { | ||
export function isundefined ( obj ) { | ||
|
||
return obj === undefined; | ||
|
||
}; | ||
} | ||
|
||
exports.isundefined = isundefined; |
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,7 @@ | ||
export * from './isfinite.js'; | ||
export * from './isint.js'; | ||
export * from './isint32.js'; | ||
export * from './isnan.js'; | ||
export * from './isnegativeinfinity.js'; | ||
export * from './isnumber.js'; | ||
export * from './ispositiveinfinity.js'; |
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 |
---|---|---|
@@ -1,12 +1,11 @@ | ||
|
||
|
||
var isfinite = function ( value ) { | ||
export function isfinite ( value ) { | ||
|
||
return isnumber( value ) && | ||
! ispositiveinfinity( value ) && | ||
! isnegativeinfinity( value ) && | ||
! isnan( value ); | ||
|
||
}; | ||
} | ||
|
||
exports.isfinite = isfinite; |
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 |
---|---|---|
@@ -1,9 +1,8 @@ | ||
|
||
|
||
var isint = function ( value ) { | ||
export function isint ( value ) { | ||
|
||
return isfinite( value ) && (value % 1 === 0); | ||
|
||
}; | ||
} | ||
|
||
exports.isint = isint; |
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 |
---|---|---|
@@ -1,9 +1,8 @@ | ||
|
||
|
||
var isint32 = function ( value ) { | ||
export function isint32 ( value ) { | ||
|
||
return isfinite( value ) && value === (value | 0); | ||
|
||
}; | ||
} | ||
|
||
exports.isint32 = isint32; |
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 |
---|---|---|
@@ -1,7 +1,6 @@ | ||
|
||
|
||
var isnan = function ( value ) { | ||
export function isnan ( value ) { | ||
return isnumber( value ) && isNaN( value ); | ||
}; | ||
} | ||
|
||
exports.isnan = isnan; |
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 |
---|---|---|
@@ -1,7 +1,6 @@ | ||
|
||
|
||
var isnegativeinfinity = function ( value ) { | ||
export function isnegativeinfinity ( value ) { | ||
return value === -Infinity; | ||
}; | ||
} | ||
|
||
exports.isnegativeinfinity = isnegativeinfinity; |
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 |
---|---|---|
@@ -1,9 +1,8 @@ | ||
|
||
|
||
var isnumber = function ( value ) { | ||
export function isnumber ( value ) { | ||
|
||
return isinstance( Number, value ); | ||
|
||
}; | ||
} | ||
|
||
exports.isnumber = isnumber; |
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 |
---|---|---|
@@ -1,7 +1,6 @@ | ||
|
||
|
||
var ispositiveinfinity = function ( value ) { | ||
export function ispositiveinfinity ( value ) { | ||
return value === Infinity; | ||
}; | ||
} | ||
|
||
exports.ispositiveinfinity = ispositiveinfinity; |
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,7 @@ | ||
export * from './isarray.js'; | ||
export * from './isboolean.js'; | ||
export * from './isdate.js'; | ||
export * from './isfunction.js'; | ||
export * from './isobject.js'; | ||
export * from './isregexp.js'; | ||
export * from './isstring.js'; |
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 |
---|---|---|
@@ -1,9 +1,8 @@ | ||
|
||
|
||
var isarray = function ( value ) { | ||
export function isarray ( value ) { | ||
|
||
return isinstance( Array, value ); | ||
|
||
}; | ||
} | ||
|
||
exports.isarray = isarray; |
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 |
---|---|---|
@@ -1,9 +1,8 @@ | ||
|
||
|
||
var isboolean = function ( value ) { | ||
export function isboolean ( value ) { | ||
|
||
return isinstance( Boolean, value ); | ||
|
||
}; | ||
} | ||
|
||
exports.isboolean = isboolean; |
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 |
---|---|---|
@@ -1,9 +1,8 @@ | ||
|
||
|
||
var isdate = function ( value ) { | ||
export function isdate ( value ) { | ||
|
||
return isinstance( Date, value ); | ||
|
||
}; | ||
} | ||
|
||
exports.isdate = isdate; |
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 |
---|---|---|
@@ -1,9 +1,8 @@ | ||
|
||
|
||
var isfunction = function ( value ) { | ||
export function isfunction ( value ) { | ||
|
||
return isinstance( Function, value ); | ||
|
||
}; | ||
} | ||
|
||
exports.isfunction = isfunction; |
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 |
---|---|---|
@@ -1,9 +1,8 @@ | ||
|
||
|
||
var isobject = function ( value ) { | ||
export function isobject ( value ) { | ||
|
||
return isinstance( Object, value ); | ||
|
||
}; | ||
} | ||
|
||
exports.isobject = isobject; |
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 |
---|---|---|
@@ -1,9 +1,8 @@ | ||
|
||
|
||
var isregexp = function ( value ) { | ||
export function isregexp ( value ) { | ||
|
||
return isinstance( RegExp, value ); | ||
|
||
}; | ||
} | ||
|
||
exports.isregexp = isregexp; |
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 |
---|---|---|
@@ -1,9 +1,8 @@ | ||
|
||
|
||
var isstring = function ( value ) { | ||
export function isstring ( value ) { | ||
|
||
return isinstance( String, value ); | ||
|
||
}; | ||
} | ||
|
||
exports.isstring = isstring; |