dist/bundle/ds.js
/**
 * Parses the path. Splits it into
 * keys for objects and indices for arrays.
 */
Parses the path. Splits it into
keys for objects and indices for arrays.
Parses the path . Splits it into keys for objects and indices for arrays .
function tokenize(path) {
    if (path === null) {
        return [];
    }
    var tokens = [];
    var parts = path.split('.');
    for (var i = 0; i < parts.length; i++) {
        var part = parts[i].trim();
        if (part.length === 0) {
            continue;
        }
        var arrayIndexes = part.split(SPLIT_REG_EXP);
        if (arrayIndexes.length === 0) {
            continue;
        }
        tokens.push(arrayIndexes[0]);
        for (var j = 1; j < arrayIndexes.length; j++) {
            if (arrayIndexes[j].length === 0) {
                continue;
            }
            tokens.push(Number(arrayIndexes[j]));
        }
    }
    return tokens;
}
function tokenize ( path ) { if ( path === null ) { return [ ] ; } var tokens = [ ] ; var parts = path . split ( '.' ) ; for ( var i = 0 ; i < parts . length ; i ++ ) { var part = parts [ i ] . trim ( ) ; if ( part . length === 0 ) { continue ; } var arrayIndexes = part . split ( SPLIT_REG_EXP ) ; if ( arrayIndexes . length === 0 ) { continue ; } tokens . push ( arrayIndexes [ 0 ] ) ; for ( var j = 1 ; j < arrayIndexes . length ; j ++ ) { if ( arrayIndexes [ j ] . length === 0 ) { continue ; } tokens . push ( Number ( arrayIndexes [ j ] ) ) ; } } return tokens ; }
Parses the path.
Parses the path .
// TODO