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: about 1 year ago
JSON representation
Detect whether or not an object is a DataView.
- Host: GitHub
- URL: https://github.com/xotic750/is-data-view-x
- Owner: Xotic750
- License: mit
- Created: 2015-12-11T23:04:25.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2023-07-02T16:31:54.000Z (almost 3 years ago)
- Last Synced: 2025-04-30T20:09:23.543Z (about 1 year ago)
- Topics: browser, dataview, ecmascript, nodejs
- Language: JavaScript
- Homepage:
- Size: 2.61 MB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 21
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## 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
```