0.11.0 • Published 9 months ago

@jasonsbarr/dict v0.11.0

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

@jasonsbarr/dict

A collection of functions that treat Plain Old JavaScript Objects as iterable, keyed collections (a.k.a. Dictionaries).

Note that returned objects will have a null prototype. This is to give you the greatest flexibility with your allowable keys.

Basic Usage

Import and use only the functions you need:

import { filter } from "@jasonsbarr/dict/lib/filter";
import { endsWith } from "@jasonsbarr/functional-core/lib/string/endsWith";

const contacts = {
  john: "john.doe@gmail.com",
  jimmy: "jimmy@yahoo.com",
  jane: "jane-the-awesome@gmail.com",
  jeremy: "jeremy@msn.com",
};

const gmailContacts = filter(
  (contact) => endsWith("@gmail.com", contact),
  contacts
);

Documentation

Documentation

0.11.0

9 months ago

0.10.0

10 months ago

0.9.3

2 years ago

0.5.4

2 years ago

0.8.0

2 years ago

0.7.1

2 years ago

0.9.2

2 years ago

0.5.5

2 years ago

0.5.0

3 years ago

0.4.1

3 years ago

0.5.2

2 years ago

0.6.0

2 years ago

0.4.2

3 years ago

0.3.0

3 years ago

0.3.2

3 years ago

0.3.1

3 years ago

0.2.2

3 years ago

0.3.3

3 years ago

0.2.0

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago