Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/xotic750/is-data-view-x

Detect whether or not an object is a DataView.
https://github.com/xotic750/is-data-view-x

browser dataview ecmascript nodejs

Last synced: 3 months ago
JSON representation

Detect whether or not an object is a DataView.

Awesome Lists containing this project

README

        


Travis status


Dependency status


devDependency status


npm version


jsDelivr hits


bettercodehub score


Coverage Status

## is-data-view-x

Detect whether or not an object is a DataView.

### `module.exports(object)` ⇒ boolean

Determine if an `object` is an `DataView`.

**Kind**: Exported function
**Returns**: boolean - `true` if the `object` is a `DataView`, else `false`.

| Param | Type | Description |
| ------ | --------------- | ------------------- |
| object | \* | The object to test. |

**Example**

```js
import isDataView from 'is-data-view-x';

const ab = new ArrayBuffer(4);
const dv = new DataView(ab);

isDataView(ab); // false
isDataView(true); // false
isDataView(dv); // true
```