Comparing version 33.0.0 to 34.0.0
@@ -7,2 +7,3 @@ export const truncate = (maxLength) => (input) => input.length > maxLength ? `${input.substring(0, maxLength)}...` : input; | ||
export const capitalize = (s) => s[0].toLocaleUpperCase() + s.slice(1); | ||
export const trimWhitesapce = (x) => x.trim(); | ||
export const trim = (characters) => (str) => { | ||
@@ -9,0 +10,0 @@ const charactersSet = new Set(characters); |
@@ -6,3 +6,3 @@ { | ||
"name": "gamla", | ||
"version": "33.0.0", | ||
"version": "34.0.0", | ||
"description": "Functional programming with async and type safety", | ||
@@ -9,0 +9,0 @@ "license": "MIT", |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.wrapString = exports.isValidRegExp = exports.testRegExp = exports.trim = exports.capitalize = exports.replace = exports.lowercase = exports.uppercase = exports.split = exports.truncate = void 0; | ||
exports.wrapString = exports.isValidRegExp = exports.testRegExp = exports.trim = exports.trimWhitesapce = exports.capitalize = exports.replace = exports.lowercase = exports.uppercase = exports.split = exports.truncate = void 0; | ||
const truncate = (maxLength) => (input) => input.length > maxLength ? `${input.substring(0, maxLength)}...` : input; | ||
@@ -16,2 +16,4 @@ exports.truncate = truncate; | ||
exports.capitalize = capitalize; | ||
const trimWhitesapce = (x) => x.trim(); | ||
exports.trimWhitesapce = trimWhitesapce; | ||
const trim = (characters) => (str) => { | ||
@@ -18,0 +20,0 @@ const charactersSet = new Set(characters); |
@@ -7,2 +7,3 @@ export declare const truncate: (maxLength: number) => (input: string) => string; | ||
export declare const capitalize: (s: string) => string; | ||
export declare const trimWhitesapce: (x: string) => string; | ||
export declare const trim: (characters: string[]) => (str: string) => string; | ||
@@ -9,0 +10,0 @@ export declare const testRegExp: (regexp: RegExp) => (x: string) => boolean; |
195085
1759