Skip to content

VCFAdvisor/tea-compact-js

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tea-compact-js

tea-compact-js 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-compact-js, use npm or yarn:

npm install tea-compact-js
# OR
yarn add tea-compact-js

Usage

Import tea-compact-js into your project and use it:

const compact = require("tea-compact-js");

// 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);

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%