Data of cursor, changing at every cursor.apply()
cursor.apply()
Abstract query for some source, which makes the source be able to send bundles to this cursor.
Unic id for every execution of query.
Get data by path from cursor.
import { Cursor } from 'ancient-cursor/lib/cursor'; const cursor = new Cursor(); cursor.exec(true, { a: [ { x: 2, b: 123 } ] }); cursor.data; // { a: [ { x: 2, b: 123 } ] } cursor.get("a.0[b]"); // 123 cursor.get(['a',0,'b']); // 123 cursor.get(['a',{ x: 2 },'b']); // 123
Unsafe. Can be used for parsing bundles.
Generated using TypeDoc
Data of cursor, changing at every
cursor.apply()