Module: sources/cores/typed-arrays/isArrayBuffer

Export function to validate if a value is a array buffer
Author:
License:
Source:

Example

import { isArrayBuffer } from 'itee-validators'

if( isArrayBuffer( value ) ) {
    //...
} else {
    //...
}

Methods


<static> isArrayBuffer(data)

Check if given data is a array buffer
Parameters:
Name Type Description
data * The data to check against the array buffer type
Source:
Returns:
true if data is a array buffer, false otherwise.
Type
boolean

<static> isNotArrayBuffer(data)

Check if given data is not a array buffer
Parameters:
Name Type Description
data * The data to check against the array buffer type
Source:
Returns:
true if data is not a array buffer, false otherwise.
Type
boolean