mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Add filter to retrieve number of keys in objects.
This commit is contained in:
parent
1f92a494e7
commit
1e66c46ca7
2 changed files with 6 additions and 0 deletions
|
@ -10,5 +10,6 @@ define [
|
||||||
"ide/review-panel/directives/resolvedCommentsDropdown"
|
"ide/review-panel/directives/resolvedCommentsDropdown"
|
||||||
"ide/review-panel/directives/reviewPanelCollapseHeight"
|
"ide/review-panel/directives/reviewPanelCollapseHeight"
|
||||||
"ide/review-panel/filters/notEmpty"
|
"ide/review-panel/filters/notEmpty"
|
||||||
|
"ide/review-panel/filters/numKeys"
|
||||||
"ide/review-panel/filters/orderOverviewEntries"
|
"ide/review-panel/filters/orderOverviewEntries"
|
||||||
], () ->
|
], () ->
|
|
@ -0,0 +1,5 @@
|
||||||
|
define [
|
||||||
|
"base"
|
||||||
|
], (App) ->
|
||||||
|
app.filter "numKeys", () ->
|
||||||
|
(object) -> Object.keys(object).length
|
Loading…
Reference in a new issue