nl_tokens: Flattens a nested array ( the nesting can be to any depth ) . If isShallow is truey the array will only be flattened a single level . If a callback is provided each element of the array is passed through the callback before flattening . The callback is bound to thisArg and invoked with three arguments ; ( value index array ) .
pl_tokens: function flatten ( array , isShallow , <mask> , thisArg ) { // juggle arguments if ( typeof isShallow != 'boolean' && isShallow != null ) { thisArg = callback ; callback = ! ( thisArg && thisArg [ isShallow ] === array ) ? isShallow : null ; isShallow = false ; } if ( callback != null ) { array = map ( array , callback , thisArg ) ; } return baseFlatten ( array , isShallow ) ; }