UNPKG

@nova-odm/auto-marshaller

Version:

A data marshaller that converts JavaScript types into Amazon DynamoDB AttributeValues

13 lines (12 loc) 474 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isArrayBuffer = void 0; /** * Determines if the provided argument is an ArrayBuffer object. Compatible with * ArrayBuffers created in separate iframes and VMs. */ function isArrayBuffer(arg) { return (typeof ArrayBuffer === 'function' && arg instanceof ArrayBuffer) || Object.prototype.toString.call(arg) === '[object ArrayBuffer]'; } exports.isArrayBuffer = isArrayBuffer;