mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-07-02 02:03:14 +00:00
20 lines
854 B
Plaintext
20 lines
854 B
Plaintext
created: 20140410103123179
|
|
modified: 20150124184840000
|
|
tags: [[Filter Operators]]
|
|
title: indexes Operator
|
|
type: text/vnd.tiddlywiki
|
|
caption: indexes
|
|
purpose: select all data properties of the input titles
|
|
|
|
<$macrocall $name=".operator-def"
|
|
input="a [[selection of titles|Title Selection]]"
|
|
parameter="none"
|
|
output="all the property names or indices contained in the input data tiddlers"
|
|
/>
|
|
|
|
Each input title is processed in turn, and is ignored if it does not denote a [[data tiddler|DataTiddlers]]. The list of property names is retrieved from the data tiddler (in no particular order) and then [[dominantly appended|Dominant Append]] to the operator's output.
|
|
|
|
Where a tiddler's [[content is JSON|JSONTiddlers]] with an array as its root, the <<.op indexes>> operator retrieves a selection of integer indices instead.
|
|
|
|
<<.operator-examples "indexes">>
|