Created
October 30, 2012 15:14
-
-
Save bfricka/3980844 to your computer and use it in GitHub Desktop.
AngularJS startFrom Filter
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
app.filter 'startFrom', -> | |
(input, start) -> | |
if input? and start? and typeof start is 'number' | |
start = +start | |
input.slice(start) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment