Created
October 20, 2016 02:49
-
-
Save basekays/9475f25e1d5d4e0d4dba5e4a74282ba0 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 _ = {}; | |
| _.pluck = function (list, key) { | |
| var result = []; | |
| for (var i = 0; i<list.length; i++) { | |
| if (list[i][key]) { | |
| result.push(list[i][key]); | |
| } | |
| } | |
| return result; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
!!! nice kay!