Utils

Utils is a collection of utility methods for day to day web application and library development. It is developed for reusability purposes as it is utilized by most of all libraries published by same author.
If you bumped into this project and find it useful for your project, please don't hesitate to give us a star. Because it is a typescript project, you get excellent auto-completion and type checks.
Installation
npm install @teclone/utils
Usage Sample
import { scopeCallback, camelCase, copy, range, expandProperty } from '@teclone/utils';
console.log(camelCase('my-string'));
console.log(camelCase('my:string', ':'));
const myObject = {
headers: {
contentType: 'text/html',
},
colors: ['#fff', 'green', '#808080'],
};
const myObjectCopy = copy({}, myObject);
myObject.headers.contentType = 'text/css';
console.log(myObjectCopy.headers.contentType);
const result = expandProperty({}, 'headers.contentType', 'text/css');
console.log(result.headers.contentType);