function startsWith(str, prefix) {
        return str.slice(0, prefix.length) === prefix;
    }
Returns true if the given string starts with the given prefix.
@param   {String} str
@param   {String} prefix
@return {Boolean}