UNPKG

fiql-query-builder

Version:

This module provides the utility to generate valid FIQL query strings by using a JSON objects or the custom classes provided.

16 lines (15 loc) 253 B
/** * Represents a value, can be selector or argument */ export class LeafNode { /** * Initialise the leaf * @param {string|number} v The value of the leaf node */ constructor(v) { this.v = v; } build() { return this.v; } }