Value.has

Has key

  1. bool has(in string key)
  2. bool has(Value key)
    struct Value
    @safe
    bool
    has
    const nothrow

Examples

ditto

auto v = Value(["foo":1, "bar":2]);
assert(v.has("foo"));
assert(!v.has("baz"));
assert(v.has(Value("bar")));

Meta