nl_tokens: Transforms the properties in an object to an encoded URI query string . <b > Note< / b > : works best if the object is in the format of { propertyName : propertyValue propertyName2 : propertyValue2 . . }
pl_tokens: function toURI ( obj , dontEncode ) { const arr = [ ] ; let paramVal ; if ( isObject ( obj ) && ! isArray ( obj ) ) { Object . keys ( obj ) . forEach ( ( val ) => { if ( isArray ( obj [ val ] ) ) { paramVal = ` ${ obj [ val ] . <mask> ( ',' ) } ` ; } else { paramVal = obj [ val ] ; } if ( dontEncode ) { arr . push ( ` ${ val } ${ paramVal } ` ) ; } else { arr . push ( ` ${ encodeURIComponent ( val ) } ${ encodeURIComponent ( paramVal ) } ` ) ; } } ) ; } return arr . join ( '&' ) ; }