kondo
v0.0.1
Published
Make your code spark joy again.
Downloads
4
Readme
kondo
Make your code spark joy again with the Kondo (Marie Kondo) method.
Setup
Installation
yarn add kondo
# or
npm install kondo
Imports
import konmari from "kondo";
// or
import { konmari } from "kondo";
Example
import { konmari } from "kondo"; // "import kondo from 'kondo'"
var person = {
name: "Derek",
car: "Honda"
};
// konmari(value: object, key: string, sparksJoy: boolean) => emoji
konmari(person, "car", false); // => 😄
// person => { name: 'Derek' }