UNPKG

vuikit

Version:

A Vuejs component library based on UIkit

19 lines (15 loc) 293 B
/** * Vuikit 0.7.0 * (c) 2018 Miljan Aleksic * @license MIT */ import { isArray, isUndefined } from 'vuikit/core/util' /* * Converts the value to an array */ export default function (val) { if (val === null || isUndefined(val)) { return [] } return isArray(val) ? val : [val] }