mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-20 01:47:35 +00:00
refactor(util) type
This commit is contained in:
parent
9601355097
commit
68a34f6224
1 changed files with 2 additions and 2 deletions
|
|
@ -404,12 +404,12 @@
|
|||
return typeof variable === name;
|
||||
}
|
||||
|
||||
['arrayBuffer', 'object', 'file', 'array']
|
||||
['arrayBuffer', 'file', 'array']
|
||||
.forEach(function(name) {
|
||||
type[name] = typeOf.bind(null, name);
|
||||
});
|
||||
|
||||
['string', 'undefined', 'boolean', 'number', 'function']
|
||||
['string', 'undefined', 'boolean', 'number', 'function', 'object']
|
||||
.forEach(function(name) {
|
||||
type[name] = typeOfSimple.bind(null, name);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue