Created
March 7, 2016 17:08
-
-
Save esarbanis/0d92caab4a0aabd4038d to your computer and use it in GitHub Desktop.
Filters an array or list against a blacklist.
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
import LodashStatic = _; | |
class NotIn { | |
static ID:string = 'notIn'; | |
static filter() { | |
return (input:any[], blacklist:any[]) => { | |
return LodashStatic.difference(input, blacklist); | |
}; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment