File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -316,6 +316,10 @@ const Q = new jsonQ(JsonObject).from('products').count();
316
316
317
317
See detail example [ here] ( examples/count.js ) .
318
318
319
+ ### ` size() `
320
+
321
+ This is an alias method of ` count() ` .
322
+
319
323
### ` max(property) `
320
324
321
325
* ` property ` -- the property name of the data
Original file line number Diff line number Diff line change @@ -293,6 +293,15 @@ class JSJsonQ {
293
293
return this . _jsonContent . length ;
294
294
}
295
295
296
+ /**
297
+ * size - returns the size of the collection
298
+ *
299
+ * @returns {int }
300
+ */
301
+ size ( ) {
302
+ return this . count ( ) ;
303
+ }
304
+
296
305
/**
297
306
* max - If a 'property' given as parameter this method will return the maximum
298
307
* value of the collection contains that property, otherwise it will assume
You can’t perform that action at this time.
0 commit comments