moinism / faltu Goto Github PK
View Code? Open in Web Editor NEWSearch sort, filter, limit an array of objects in Mongo-style.
License: MIT License
Search sort, filter, limit an array of objects in Mongo-style.
License: MIT License
Love the library idea. Boundary case!
Doesn't handle {$ne: null}
properly.
const data = [{prop: null}, {prop: 'hi'}]
const f = new Faltu(data)
console.log(f.find({prop: {$ne: null}}).get().length)
// logs 0
I believe it's this line, not sure:
https://github.com/moinism/faltu/blob/master/src/faltu.js#L101
Is there another recommended way to check for a property not equaling null?
Hi, i am interested in updating, deleting all or only search result(s), is this posible?
eq:
newData= new Faltu(data).find({
age: 18
}).update(age:19).get();
newData would contain the rows found in data but with the updated value for age, 19 instead of 18...
and also the ability to delete:
newData = new Faltu(data).find({
age: 19
}).delete().get();
or maybe even use delete instead of find:
newData = new Faltu(data).delete({
age: 19
}).get();
here newdata will be an array with the deleted rows.
It would be nice if Sorting, Limit, Skip, Skip & Limit, Unique, Filtering and Iterate would work with update and delete too :)
Thanks
Hi man,
This project is the same like MonguitoDB? https://github.com/equisoide/monguitodb
Regards, Nicholls
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.