UNPKG

react-radial

Version:

a radial component built with react and resonance

9 lines (8 loc) 527 B
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; }; export var 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); };