1515 * @returns Return index position in the Array of the passed item.
1616 * @example
1717 *
18- * var inflection = require( 'inflection' );
18+ * const inflection = require( 'inflection' );
1919 *
2020 * inflection.indexOf([ 'hi','there' ], 'guys' ); // === -1
2121 * inflection.indexOf([ 'hi','there' ], 'hi' ); // === 0
@@ -28,7 +28,7 @@ export declare function indexOf<T>(arr: T[], item: T, fromIndex?: number, compar
2828 * @returns Singular English language nouns are returned in plural form.
2929 * @example
3030 *
31- * var inflection = require( 'inflection' );
31+ * const inflection = require( 'inflection' );
3232 *
3333 * inflection.pluralize( 'person' ); // === 'people'
3434 * inflection.pluralize( 'octopus' ); // === 'octopuses'
@@ -43,7 +43,7 @@ export declare function pluralize(str: string, plural?: string): string;
4343 * @returns Plural English language nouns are returned in singular form.
4444 * @example
4545 *
46- * var inflection = require( 'inflection' );
46+ * const inflection = require( 'inflection' );
4747 *
4848 * inflection.singularize( 'people' ); // === 'person'
4949 * inflection.singularize( 'octopuses' ); // === 'octopus'
@@ -60,7 +60,7 @@ export declare function singularize(str: string, singular?: string): string;
6060 * @returns English language nouns are returned in the plural or singular form based on the count.
6161 * @example
6262 *
63- * var inflection = require( 'inflection' );
63+ * const inflection = require( 'inflection' );
6464 *
6565 * inflection.inflect( 'people' 1 ); // === 'person'
6666 * inflection.inflect( 'octopuses' 1 ); // === 'octopus'
@@ -82,7 +82,7 @@ export declare function inflect(str: string, count: number, singular?: string, p
8282 * additionally '/' is translated to '::'
8383 * @example
8484 *
85- * var inflection = require( 'inflection' );
85+ * const inflection = require( 'inflection' );
8686 *
8787 * inflection.camelize( 'message_properties' ); // === 'MessageProperties'
8888 * inflection.camelize( 'message_properties', true ); // === 'messageProperties'
@@ -97,7 +97,7 @@ export declare function camelize(str: string, lowFirstLetter?: boolean): string;
9797 * additionally '::' is translated to '/'.
9898 * @example
9999 *
100- * var inflection = require( 'inflection' );
100+ * const inflection = require( 'inflection' );
101101 *
102102 * inflection.underscore( 'MessageProperties' ); // === 'message_properties'
103103 * inflection.underscore( 'messageProperties' ); // === 'message_properties'
@@ -112,7 +112,7 @@ export declare function underscore(str: string, allUpperCase?: boolean): string;
112112 * @returns Lower case underscored words will be returned in humanized form.
113113 * @example
114114 *
115- * var inflection = require( 'inflection' );
115+ * const inflection = require( 'inflection' );
116116 *
117117 * inflection.humanize( 'message_properties' ); // === 'Message properties'
118118 * inflection.humanize( 'message_properties', true ); // === 'message properties'
@@ -124,7 +124,7 @@ export declare function humanize(str: string, lowFirstLetter?: boolean): string;
124124 * @returns All characters will be lower case and the first will be upper.
125125 * @example
126126 *
127- * var inflection = require( 'inflection' );
127+ * const inflection = require( 'inflection' );
128128 *
129129 * inflection.capitalize( 'message_properties' ); // === 'Message_properties'
130130 * inflection.capitalize( 'message properties', true ); // === 'Message properties'
@@ -136,7 +136,7 @@ export declare function capitalize(str: string): string;
136136 * @returns Replaces all spaces or underscores with dashes.
137137 * @example
138138 *
139- * var inflection = require( 'inflection' );
139+ * const inflection = require( 'inflection' );
140140 *
141141 * inflection.dasherize( 'message_properties' ); // === 'message-properties'
142142 * inflection.dasherize( 'Message Properties' ); // === 'Message-Properties'
@@ -148,7 +148,7 @@ export declare function dasherize(str: string): string;
148148 * @returns Capitalizes words as you would for a book title.
149149 * @example
150150 *
151- * var inflection = require( 'inflection' );
151+ * const inflection = require( 'inflection' );
152152 *
153153 * inflection.titleize( 'message_properties' ); // === 'Message Properties'
154154 * inflection.titleize( 'message properties to keep' ); // === 'Message Properties to Keep'
@@ -160,7 +160,7 @@ export declare function titleize(str: string): string;
160160 * @returns Removes module names leaving only class names.(Ruby style)
161161 * @example
162162 *
163- * var inflection = require( 'inflection' );
163+ * const inflection = require( 'inflection' );
164164 *
165165 * inflection.demodulize( 'Message::Bus::Properties' ); // === 'Properties'
166166 */
@@ -171,7 +171,7 @@ export declare function demodulize(str: string): string;
171171 * @returns Return camel cased words into their underscored plural form.
172172 * @example
173173 *
174- * var inflection = require( 'inflection' );
174+ * const inflection = require( 'inflection' );
175175 *
176176 * inflection.tableize( 'MessageBusProperty' ); // === 'message_bus_properties'
177177 */
@@ -182,7 +182,7 @@ export declare function tableize(str: string): string;
182182 * @returns Underscored plural nouns become the camel cased singular form.
183183 * @example
184184 *
185- * var inflection = require( 'inflection' );
185+ * const inflection = require( 'inflection' );
186186 *
187187 * inflection.classify( 'message_bus_properties' ); // === 'MessageBusProperty'
188188 */
@@ -195,7 +195,7 @@ export declare function classify(str: string): string;
195195 * @returns Underscored plural nouns become the camel cased singular form.
196196 * @example
197197 *
198- * var inflection = require( 'inflection' );
198+ * const inflection = require( 'inflection' );
199199 *
200200 * inflection.foreign_key( 'MessageBusProperty' ); // === 'message_bus_property_id'
201201 * inflection.foreign_key( 'MessageBusProperty', true ); // === 'message_bus_propertyid'
@@ -207,7 +207,7 @@ export declare function foreignKey(str: string, dropIdUbar?: boolean): string;
207207 * @returns Return all found numbers their sequence like '22nd'.
208208 * @example
209209 *
210- * var inflection = require( 'inflection' );
210+ * const inflection = require( 'inflection' );
211211 *
212212 * inflection.ordinalize( 'the 1 pitch' ); // === 'the 1st pitch'
213213 */
@@ -234,7 +234,7 @@ declare const transformFunctions: {
234234 * @returns
235235 * @example
236236 *
237- * var inflection = require( 'inflection' );
237+ * const inflection = require( 'inflection' );
238238 *
239239 * inflection.transform( 'all job', [ 'pluralize', 'capitalize', 'dasherize' ]); // === 'All-jobs'
240240 */
0 commit comments