nl_tokens: Extracts a value at an index of passed in array ( alternately only extract the value if it is of type ) . Returns an array with two elements : Element 1 contains the extracted value and element 2 the resulting array of the extraction ( copy of original array with extracted element ) of the value at index .
pl_tokens: function extractFromArrayAt ( array , index , <mask> , makeCopyOfArray ) { makeCopyOfArray = isBoolean ( makeCopyOfArray ) ? makeCopyOfArray : true ; var retVal = [ null , array ] , matchesType , foundElement , subject , splicedArray ; if ( array . hasOwnProperty ( index + '' ) ) { subject = makeCopyOfArray ? array . slice ( ) : array ; matchesType = issetAndOfType ( type , _String ) ? classOfIs ( subject [ index ] , type ) : true ; if ( matchesType ) { splicedArray = subject . splice ( index , 1 ) ; foundElement = splicedArray . length > 0 ? splicedArray [ 0 ] : null ; retVal = [ foundElement , subject ] ; } } return retVal ; }