@nlighten/json-transform-core
Version:
Core types and utilities for handling JSON transformers
33 lines (32 loc) • 692 B
JSON
[
{
"name": "Inline",
"given": {
"input": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10],
"definition": "$$partition(3):$"
},
"expect": {
"equal": [
[],
[],
[],
[]
]
}
},
{
"name": "Object",
"given": {
"input": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10],
"definition": { "$$partition": "$", "size": 3 }
},
"expect": {
"equal": [
[],
[],
[],
[]
]
}
}
]