tea-adoptive-blockchain
v1.0.0
Published
A lightweight utility function, similar to lodash.compact.
Downloads
3
Maintainers
Readme
tea-adoptive-blockchain
tea-adoptive-blockchain
is designed to be simple and straightforward, similar to the _.compact
function in lodash, but as a standalone module with no dependencies, making it perfect for projects where you want to keep your bundle size small.
Installation
To install tea-adoptive-blockchain
, use npm or yarn:
npm install tea-adoptive-blockchain
# OR
yarn add tea-adoptive-blockchain
Usage
Import tea-adoptive-blockchain
into your project and use it:
const compact = require("tea-adoptive-blockchain");
// Example array
const myArray = [0, 1, false, 2, "", 3];
// Call function
const result = compact([0, 1, false, 2, "", 3]);
// Output: [1, 2, 3]
console.log(result);