0.11.0 • Published 2 years ago
@jasonsbarr/dict v0.11.0
@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
0.11.0
2 years ago
0.10.0
2 years ago
0.9.3
3 years ago
0.5.4
4 years ago
0.8.0
4 years ago
0.7.1
4 years ago
0.9.2
4 years ago
0.5.5
4 years ago
0.5.0
4 years ago
0.4.1
4 years ago
0.5.2
4 years ago
0.6.0
4 years ago
0.4.2
4 years ago
0.3.0
4 years ago
0.3.2
4 years ago
0.3.1
4 years ago
0.2.2
4 years ago
0.3.3
4 years ago
0.2.0
4 years ago
0.1.5
4 years ago
0.1.4
4 years ago
0.1.3
4 years ago
0.1.2
4 years ago