remove type check

This commit is contained in:
Fabian Jakobs 2010-12-16 18:25:29 +01:00
commit d78bb1b5ab

View file

@ -217,9 +217,8 @@ exports.indexOfProperty = function(array, propertyName, item) {
* A la Prototype last().
*/
exports.last = function(array) {
if (Array.isArray(array)) {
return array[array.length - 1];
}
return array[array.length - 1];
};
/**