UNPKG

wix-style-react

Version:
15 lines (13 loc) 363 B
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray"; import isObject from './isObject'; export default function values(obj) { if (Array.isArray(obj) || typeof obj === 'string') { return _toConsumableArray(obj); } if (!isObject(obj)) { return []; } return Object.keys(obj).map(function (key) { return obj[key]; }); }