public/libraries.js
function getWordLengthFromCollection( string, collection, dateObject ) {

        // Grab the first word from the string.
        var word = string.match( /\w+/ )[ 0 ]

        // If there's no month index, add it to the date object
        if ( !dateObject.mm && !dateObject.m ) {
            dateObject.m = collection.indexOf( word ) + 1
        }

        // Return the length of the word.
        return word.length
    }
function getWordLengthFromCollection( string, collection, dateObject ) {

        // Grab the first word from the string.
        var word = string.match( /\w+/ )[ 0 ]

        // If there's no month index, add it to the date object
        if ( !dateObject.mm && !dateObject.m ) {
            dateObject.m = collection.indexOf( word ) + 1
        }

        // Return the length of the word.
        return word.length
    }
function getWordLengthFromCollection ( string , collection , dateObject ) { // Grab the first word from the string. var word = string . match ( / \w+ / ) [ 0 ] // If there's no month index, add it to the date object if ( ! dateObject . mm && ! dateObject . m ) { dateObject . m = collection . indexOf ( word ) + 1 } // Return the length of the word. return word . length }
Return the length of the first word in a collection.
Return the length of the first word in a collection .