chore(util) throw() -> throw

This commit is contained in:
coderaiser 2016-05-24 22:37:04 +03:00
parent 2c5e217468
commit ef4fa58b7c

View file

@ -50,7 +50,7 @@
name: name
});
throw(Error(msg));
throw Error(msg);
}
return check;
@ -69,7 +69,7 @@
var is = Util.type(arg) === type;
if (!is)
throw(Error(name + ' should be ' + type));
throw Error(name + ' should be ' + type);
return check;
};
@ -283,7 +283,7 @@
var ret = [];
if (!Array.isArray(arr))
throw(Error('arr should be array!'));
throw Error('arr should be array!');
ret = arr.map(function(item) {
return item.name;
@ -302,10 +302,10 @@
var ret;
if (!Array.isArray(array))
throw(Error('array should be array!'));
throw Error('array should be array!');
if (typeof name !== 'string')
throw(Error('name should be string!'));
throw Error('name should be string!');
array.some(function(item) {
var is = item.name === name,