UNPKG

react-radial

Version:

a radial component built with react and resonance

13 lines (10 loc) 583 B
'use strict'; exports.__esModule = true; var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; var arrayFill = exports.arrayFill = function arrayFill(value, length) { if ((typeof value === 'undefined' ? 'undefined' : _typeof(value)) === 'object' && value.length > 1) { return value; } var arr = new Array(length); return arr.fill(value); };