Comments (3)
Code.
<script>
var db = TAFFY([
{"author": "name", "title": "anything", "keywords": ["a", "b"]},
{"author": "name", "title": "anything", "keywords": []}
]);
console.log(db({keywords: {has: 'a'}}).get());
console.log(db({keywords: {hasAll: ['a', 'b']}}).get());
</script>
from taffydb.
I have found the bug and made a patch. You can find it in the pull requests or in my local copy.
Cheers.
from taffydb.
The bug appears in TAFFY.has when check for var1.TAFFY, if var1 is undefined the code explode. You must check undefined !== var1 && var1.TAFFY
from taffydb.
Related Issues (20)
- Multiple Levels of nested Objects HOT 2
- taffy 2.7.x breaks its own `column: {isUndefined: true}` filter
- documentation fix HOT 3
- Complex queries -- Specific syntax needed for 'AND' HOT 1
- .order .start .limit need help
- State of the project HOT 9
- License for http://registry.npmjs.com/taffydb/2.6.2 HOT 6
- Query with both and + or filters does not work
- Is Taffy records schema-full? HOT 1
- Official website seems to be down HOT 11
- Sync to server database? HOT 1
- Entries duplicated with store('table_name') / local storage? HOT 1
- Create undo
- Does sort actually work? HOT 1
- upgrade taffydb: select, key name HOT 1
- TypeError: TAFFY is not a function HOT 2
- Query Callback error when including delay HOT 1
- snyk test shows Internal Property Tampering issue HOT 4
- Security issue with snyk test.
- Loading taffyDB as a library for Apps Script HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from taffydb.