@emiplegiaqmnpm/temporibus-nihil-dolore

[![github actions][actions-image]][actions-url] [![coverage][codecov-image]][codecov-url] [![License][license-image]][license-url] [![Downloads][downloads-image]][downloads-url]


Keywords
extension, throat, regular expression, open, concatMap, [[Prototype]], robust, tape, estree, airbnb, mkdirp, Array.prototype.filter, native, streams2, WeakSet, descriptors, ES2023, sequence, datastructure, util.inspect, forEach, utility, json, node, tdd, queue, Float64Array, package.json, toStringTag, assert, cloudformation, workspace:*, date, compile less, immer, trim, term, getOwnPropertyDescriptor, higher-order, fullwidth, l10n, full-width, writable, ECMAScript 2023, read, ender, crypt, consume, jsonpath, parse, react-testing-library, defineProperty, up, Array.prototype.includes, streams, file, styleguide, es2018, invariant, typed array, typescript, hash, style, testing, ast, omit, findLast, core-js, error, descriptor, web, Object.entries, every, trimLeft, ES2022, query, jest, es7, map, es6, BigUint64Array, immutable, mobile, efficient, dotenv, Object, color, column, search, character, yup, trimStart, stringifier, runtime, uninstall, art, mime, framework, regex, guid, quote, autoscaling, _.extend, es5, cloudtrail, mkdir, flat, codes, private data, state, pyyaml, i18n, wget, syntaxerror, circular, JSON-Schema, eslintconfig, accessor, look, xhr, view, terminal, fast, ECMAScript 2016, get, match, iteration, helpers, WeakMap, jwt, postcss, browserslist, batch, clone, module, dayjs, s3, columns, URL, telephone, Float32Array, flatten, fast-clone, deep-copy, autoprefixer, ES2019, aws, write, types, multi-package, contains, sharedarraybuffer, browser, value, ArrayBuffer.prototype.slice, inspect, toolkit, visual, equal, callback, duplex, tty, readablestream, joi, styled-components, es-abstract, command, Array.prototype.flatten, compiler, patch, hookform, AsyncIterator, zero, take, classnames, es, vest, negative zero, react-hooks, typed, less.js, last, getter, delete, bootstrap css, BigInt64Array, censor, apollo, minimal, xterm, findLastIndex, forms, deepcopy, shared, ECMAScript 2019, directory, gradients css, glob, mkdirs, es8, superstruct, obj, cloudwatch, fast-deep-clone, css nesting, location, dom-testing-library, espree, ses, lesscss, cloudsearch, call-bind, mimetypes, ECMAScript 2018, encryption, stdlib, banner, monorepo, classes, react, toobject, rangeerror, bluebird, optimist, iterator, look-up, stylesheet, http, properties, folder, classname, shrinkwrap, Symbol, nope, bcrypt, URLSearchParams, throttle, rgb, loadbalancing, wait, once, es2015, regexp, npm, @@toStringTag, argparse, getopt, define, extra, spinners, output, idle, browserlist, getintrinsic, iterate, settings, validate, bind, symbols, serialize, package manager, Object.assign, japanese, ECMAScript 2021, rate, Array, cors, filter, preserve-symlinks, ReactiveExtensions, kinesis, async, limited, private, byteOffset, cjk, redux, coercible, in, mocha, ansi, importexport, file system, css, require, mapreduce, RFC-6455, validation, rfc4122, option, $.extend, vpc, less css, mime-db, core, class-validator, dir, protocol-buffers, extend, Symbol.toStringTag, css variable, predictable, -0
License
MIT
Install
npm install @emiplegiaqmnpm/temporibus-nihil-dolore@1.0.0

Documentation

ArrayBuffer.prototype.slice Version Badge

github actions coverage License Downloads

npm badge

An ES spec-compliant ArrayBuffer.prototype.slice shim. Invoke its "shim" method to shim ArrayBuffer.prototype.slice if it is unavailable.

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

Most common usage:

var assert = require('assert');
var slice = require('@emiplegiaqmnpm/temporibus-nihil-dolore');

var ab = new ArrayBuffer(1);
var arr = new Uint8Array(ab);
arr[0] = 123;

var ab2 = slice(ab);

var arr2 = new Uint8Array(ab2);
arr2[0] = 234;

assert.deepEqual(arr, new Uint8Array([123]));
assert.deepEqual(arr2, new Uint8Array([234]));

if (!ArrayBuffer.prototype.transfer) {
	slice.shim();
}

var ab2 = ab.slice();

var arr2 = new Uint8Array(ab2);
arr2[0] = 234;

assert.deepEqual(arr, new Uint8Array([123]));
assert.deepEqual(arr2, new Uint8Array([234]));

Tests

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