new Simple()
A CBOR Simple Value that does not map onto a known constant.
Classes
Methods
-
<static> decode(val, has_parent)
-
Decode from the CBOR additional information into a JavaScript value. If the CBOR item has no parent, return a "safe" symbol instead of `null` or `undefined`, so that the value can be passed through a stream in object mode.
Parameters:
Name Type Description valNumber the CBOR additional info to convert has_parentbool Does the CBOR item have a parent? Returns:
- the decoded value- Type
- null | undefined | Boolean | Symbol
-
<static> isSimple(obj)
-
Is the given object a Simple?
Parameters:
Name Type Description objany object to test Returns:
- is it Simple?- Type
- bool