nl_tokens: Determines whether a resource is filtered or not .
pl_tokens: function ( res , filter ) { if ( ! filter || Object . keys ( filter ) . length === 0 ) { return <mask> ; } var prop ; for ( prop in filter ) { if ( 'extensions' === prop ) { // sugar for users if ( 'string' === typeof filter . extensions ) { filter . extensions = filter . extensions . split ( ',' ) ; } if ( ! filter . extensions || filter . extensions . indexOf ( res . ext ) === - 1 ) { return false ; } } else if ( 'types' === prop ) { // sugar for users if ( 'string' === typeof filter . types ) { filter . types = filter . types . split ( ',' ) ; } if ( ! filter . types || filter . types . indexOf ( res . type ) === - 1 ) { return false ; } } else { return false ; // unknown filters should fail to pass } } return true ; }