This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var paramArr = []; | |
function destroyer(arr) { | |
// Remove all the values | |
for(var i =1; i<arguments.length;++i){ | |
paramArr.push(arguments[i]); | |
} | |
function seeker (value){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var test = ["a", "b", "c", "d","e","f","g","h","i","j"] ; | |
//console.log (test.length); | |
function chunkArrayInGroups(array,size){ | |
var newArray =[]; | |
for(i = 0;i<array.length;i+=size){ | |
var a = array.slice(i,size); | |
console.log(a); | |
console.log(i); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Here's the problem | |
/* | |
We have an array of objects representing different people in our contacts lists. | |
A lookUpProfile function that takes firstName and a property (prop) as arguments has been pre-written for you. | |
The function should check if firstName is an actual contact's firstName and the given property (prop) is a property of that contact. | |
If both are true, then return the "value" of that property. |
NewerOlder