index.js
function one(node) {
        var children = node.children;
        var length = children.length;
        var index = -1;
        var languages;
        var child;
        var dictionary = {};
        var tuple;

        while (++index < length) {
            child = children[index];
            languages = child.data && child.data.languages;

            if (languages) {
                tuple = languages[0];

                if (tuple[0] in dictionary) {
                    dictionary[tuple[0]] += tuple[1];
                } else {
                    dictionary[tuple[0]] = tuple[1];
                }
            }
        }

        return sortDistanceObject(dictionary);
    }
function one(node) {
        var children = node.children;
        var length = children.length;
        var index = -1;
        var languages;
        var child;
        var dictionary = {};
        var tuple;

        while (++index < length) {
            child = children[index];
            languages = child.data && child.data.languages;

            if (languages) {
                tuple = languages[0];

                if (tuple[0] in dictionary) {
                    dictionary[tuple[0]] += tuple[1];
                } else {
                    dictionary[tuple[0]] = tuple[1];
                }
            }
        }

        return sortDistanceObject(dictionary);
    }
function one ( node ) { var children = node . children ; var length = children . length ; var index = - 1 ; var languages ; var child ; var dictionary = { } ; var tuple ; while ( ++ index < length ) { child = children [ index ] ; languages = child . data && child . data . languages ; if ( languages ) { tuple = languages [ 0 ] ; if ( tuple [ 0 ] in dictionary ) { dictionary [ tuple [ 0 ] ] += tuple [ 1 ] ; } else { dictionary [ tuple [ 0 ] ] = tuple [ 1 ] ; } } } return sortDistanceObject ( dictionary ) ; }
Patch one parent.

@param {NLCSTParentNode} node - Parent
@return {Array.<Array.<string, number>>} - Language
map.
Patch one parent .