Created
November 17, 2015 01:27
-
-
Save mrbobbybryant/279db510bada0440a558 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
| arrayDiff: function( current, selected ) { | |
| return selected.filter( function(data) { | |
| return current.indexOf(data) === -1; | |
| } ); | |
| }, | |
| extractArrayValue: function( array, value ) { | |
| return array.map( function(data) { | |
| return data[value]; | |
| } ); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment