SSP

//output new object function select(arr, obj) { var newObj={}; for(var key in obj){ for (var i=0; i<arr.length;i++){ if(key===arr[i]){ newObj[key]=obj[key]; } } } return newObj; }

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.