/magmel

✨ JavaScript utility library

Primary LanguageTypeScriptMIT LicenseMIT


magmel symbol

Delightful JavaScript utility library

Bundle Size MIT License Spectrum


🛠 Installation

You can easily install this package with yarn or npm:

$ yarn add magmel

or

$ npm install --save magmel

📖 Usage

Let's say you want to use the uniqueArray utility

import { uniqueArray } from 'magmel';

const test = [
  { name: 'John', age: 10 },
  { name: 'Casprine', age: 10 },
  { name: 'Albert', age: 10 },
  { name: 'Albert', age: 10 },
  { name: 'John', age: 10 },
];

uniqueArray(test);

// =>[{name: "Albert", age: 10}  {name: "Casprine", age: 10} {name: "John", age: 10}]