Utils

Interface for some of the Sequelize Utilities exposed in the Sequelize.Utils object.

uppercaseFirst(str) -> String

Uppercase the first character in a string. Matches Sequelize functionality.

Parameters

Name Type Description
str String String to uppercase the first character of

Return

String: modified string

lowercaseFirst(str) -> String

Lowercase the first character in a string. Matches Sequelize functionality.

Parameters

Name Type Description
str String String to uppercase the first character of

Return

String: modified string

singularize(str) -> String

Returns the "singular" version of a word. As with Sequelize, this uses the inflection library to accomplish this.

Parameters

Name Type Description
str String Word to convert to its singular form

Return

String: singular version of the given word

pluralize(str) -> String

Returns the "plural" version of a word. As with Sequelize, this uses the inflection library to accomplish this.

Parameters

Name Type Description
str String Word to convert to its plural form

Return

String: plural version of the given word

stack()

Gets the current stack frame

lodash

Exposed version of the lodash library
Alias _