helpful-functions
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -8,3 +8,3 @@ /** | ||
*/ | ||
export declare const isEmpty: (array: any[]) => boolean; | ||
export declare const isEmpty: <T>(array: T[]) => boolean; | ||
/** | ||
@@ -17,2 +17,13 @@ * Creates a deep copy of an array | ||
*/ | ||
export declare const copyArray: (array: any[]) => any; | ||
export declare const copyArray: <T>(array: T[]) => T[]; | ||
/** | ||
* 10 good colors that work together | ||
*/ | ||
export declare let scheme1: string[]; | ||
/** | ||
* This prints the string with the colors in the console | ||
* | ||
* @param array of colors | ||
* | ||
*/ | ||
export declare const logColors: (arrayOfColors: string[]) => void; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.copyArray = exports.isEmpty = void 0; | ||
exports.logColors = exports.scheme1 = exports.copyArray = exports.isEmpty = void 0; | ||
/** | ||
@@ -22,2 +22,32 @@ * Function that returns if the array is empty or not | ||
exports.copyArray = copyArray; | ||
/** | ||
* 10 good colors that work together | ||
*/ | ||
exports.scheme1 = [ | ||
"#001219", | ||
"#005f73", | ||
"#0a9396", | ||
"#94d2bd", | ||
"#e9d8a6", | ||
"#ee9b00", | ||
"#ca6702", | ||
"#bb3e03", | ||
"#ae2012", | ||
"#9b2226", | ||
]; | ||
/** | ||
* This prints the string with the colors in the console | ||
* | ||
* @param array of colors | ||
* | ||
*/ | ||
const logColors = (arrayOfColors) => { | ||
arrayOfColors.forEach((color) => { | ||
console.log(`%c ${color}`, `color: ${color}`); | ||
}); | ||
}; | ||
exports.logColors = logColors; | ||
// const main = () => { | ||
// }; | ||
// main(); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "helpful-functions", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/", |
Sorry, the diff of this file is not supported yet
11771
189