芝麻web文件管理V1.00
编辑当前文件:/home/freeclou/app.optimyar.com/backend/node_modules/draft-js/lib/getOwnObjectValues.js.flow
/** * Copyright 2004-present Facebook. All Rights Reserved. * * @flow strict * @typechecks * @format */ /** * Retrieve an object's own values as an array. If you want the values in the * protoype chain, too, use getObjectValuesIncludingPrototype. * * If you are looking for a function that creates an Array instance based * on an "Array-like" object, use createArrayFrom instead. * * @param {object} obj An object. * @return {array} The object's values. */ function getOwnObjectValues
(obj: { +[key: string]: TValue, ... }): Array
{ return Object.keys(obj).map(key => obj[key]); } module.exports = getOwnObjectValues;