@devtea2028/reprehenderit-cupiditate-laudantium-deleniti

1.0.0 • Public • Published

ArrayBuffer.prototype.detached Version Badge

Build Status License Downloads

npm badge

browser support

An ES6 spec-compliant ArrayBuffer.prototype.detached shim. Invoke its "shim" method to shim ArrayBuffer.prototype.detached if it is unavailable. Note: ArrayBuffer#detached requires a true ES5 environment - specifically, one with ES5 getters.

This package implements the es-shim API interface. It works in an ES5-supported environment and complies with the proposed spec.

Most common usage:

var detached = require('@devtea2028/reprehenderit-cupiditate-laudantium-deleniti');

assert(detached(new ArrayBuffer('a') === false);

if (!ArrayBuffer.prototype.detached) {
	detached.shim();
}

assert(new ArrayBuffer('a').detached, false);

Tests

Simply clone the repo, npm install, and run npm test

/@devtea2028/reprehenderit-cupiditate-laudantium-deleniti/

    Package Sidebar

    Install

    npm i @devtea2028/reprehenderit-cupiditate-laudantium-deleniti

    Weekly Downloads

    1

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    8.2 kB

    Total Files

    5

    Last publish

    Collaborators

    • accingneff7