nl_tokens: Remove empty values from an object
pl_tokens: function ( obj ) { if ( typeof obj !== 'object' ) { throw new Error ( 'Argument must be an object' ) ; } Object . keys ( obj ) . forEach ( function ( key ) { if ( obj [ key ] === null || obj [ <mask> ] === undefined ) { delete obj [ key ] ; } } ) ; return obj ; }