New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

helpful-functions

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

helpful-functions - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

15

dist/index.d.ts

@@ -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

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc