Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function friend(friends){
- //your code here
- var result = friends.filter(function(item){
- return item.length < 5;
- });
- return result;
- }
- friend(["ravi", 'Sishti', "Abhishek", "pintu", "sudha", "teja", "harsh", "rupa"]);
Add Comment
Please, Sign In to add comment