I had a play with TaffyDB for you some time in the past.
I by no means dug deep into TaffyDB, nevertheless it appears to me that it’s moderately straight ahead to interchange widespread TaffyDb duties with vanillaJS.
As an illustration Taffy’s assortment within the above instance.
const associates = TAFFY([
"id":1,"gender":"M","first":"John","last":"Smith","city":"Seattle, WA",
"id":2,"gender":"F","first":"Kelly","last":"Ruth","city":"Dallas, TX",
"id":3,"gender":"M","first":"Jeff","last":"Stevenson","city":"Washington, D.C.",
"id":4,"gender":"F","first":"Jennifer","last":"Gill","city":"Seattle, WA"
]);
could be changed with simply an array
const associates = [
"id":1,"gender":"M","first":"John","last":"Smith","city":"Seattle, WA",
...
];
The taffy question
const femaleFriends = createTable(associates(gender: 'F'))
doc.querySelector('#associates').innerHTML = femaleFriends
could be changed with Array.filter
const femaleFriends = associates.filter((gender) => gender === 'F')
doc.querySelector('#associates').innerHTML = createTable(femaleFriends)
So far as I collect TaffyDB is now not maintained, final replace seems to be Jan 21. In case you are contemplating an alternative choice Vanilla JS has loads of instruments for you or alternatively you can have a look at a practical library like ramdaJS