This function determines whether the provided value is of type bytes or not.
This function does not generate an event.
isbytes(value)
Argument | Type | Description |
---|---|---|
value | any (required) | The value to be tested. |
Returns true
if the given value is of type bytes
, else it returns false
.
This code shows some return values for isbytes():
[
isbytes( bytes() ),
isbytes( 'abc' ),
];
Return value in JSON format
[
true,
false
]