0.0.2 • Published 5 years ago
myua-helpers v0.0.2
Installation
Using npm:
$ npm i -g npm
$ npm i myua-helpers
Methods
- convertDate - Convert UNIX to default date "DD.MM.YYYY HH:mm";
- formatIn - Format date to format which you transferred, example: 20-03-19;
- getDaysAgo - Array of dates from date - range to date, example: 01-03-2019, 02-03-2019, 03-03-2019;
- getDaysAgoRange - Array with two dates, date - range and date, example: 01-03-2019, 01-04-2019;
- getDiffLengthBetweenDays - Length between two dates, example: 29;
- getNumber - Convert string to number;
- joinClasses - Array or object convert to string;
- truthyDecorator - Check every function in array return true;