nl_tokens: / * Update a sequence with new JSON
pl_tokens: function updateSeq ( ast , newJson , yaml ) { var values = ( 0 , _jsYaml . load ) ( ( 0 , _yamlJs . serialize ) ( ast ) ) ; var min = Math . min ( values . length , newJson . length ) ; if ( values . length > min ) { for ( var i = values . length - 1 ; i >= min ; -- i ) { yaml = removeArrayElement ( ast . value [ i ] , yaml ) ; } } else if ( newJson . length > min ) { yaml = insertAfterNode ( ast , cleanDump ( newJson . slice ( min ) ) , yaml ) ; } for ( var i = <mask> - 1 ; i >= 0 ; -- i ) { yaml = changeArrayElement ( ast . value [ i ] , cleanDump ( newJson [ i ] ) , yaml ) ; } return yaml ; }