Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- _.mixin({
- body : function(array, fromHead, fromTail) {
- fromHead = (_.isUndefined(fromHead)) ? 1 : fromHead;
- fromTail = (_.isUndefined(fromTail)) ? 1 : fromTail;
- if (array.length < 2) return [];
- return array.slice(fromHead, array.length-fromTail-1);
- }
- });
Add Comment
Please, Sign In to add comment