remove type check
This commit is contained in:
parent
cb547d86bc
commit
d78bb1b5ab
1 changed files with 2 additions and 3 deletions
|
|
@ -217,9 +217,8 @@ exports.indexOfProperty = function(array, propertyName, item) {
|
||||||
* A la Prototype last().
|
* A la Prototype last().
|
||||||
*/
|
*/
|
||||||
exports.last = function(array) {
|
exports.last = function(array) {
|
||||||
if (Array.isArray(array)) {
|
|
||||||
return array[array.length - 1];
|
return array[array.length - 1];
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue