diff --git a/js/src/common/utils/computed.ts b/js/src/common/utils/computed.ts index 44e5e7e98..5441824c1 100644 --- a/js/src/common/utils/computed.ts +++ b/js/src/common/utils/computed.ts @@ -2,12 +2,12 @@ * The `computed` utility creates a function that will cache its output until * any of the dependent values are dirty. * - * @param {...String} dependentKeys The keys of the dependent values. - * @param {function} compute The function which computes the value using the + * @param dependentKeys The keys of the dependent values. + * @param compute The function which computes the value using the * dependent values. */ export default function computed(dependentKeys: string | string[], compute: Function): () => any { - const keys = Array.from(dependentKeys); + const keys = [].concat(dependentKeys); const dependentValues = {}; let computedValue;