From 3a3b535874eee07c66130fd5160a2c262eebdb0a Mon Sep 17 00:00:00 2001 From: Tim Yung Date: Sat, 12 Oct 2019 15:47:17 -0700 Subject: [PATCH] RN: Delete `getObjectValues` Summary: Deletes `getObjectValues` because there are no more references to it in `react-native`. Changelog: [Internal] Reviewed By: TheSavior Differential Revision: D17884311 fbshipit-source-id: c97caeed00fe94a6cc099fba7039d9defee719dd --- Libraries/vendor/core/getObjectValues.js | 30 ------------------------ 1 file changed, 30 deletions(-) delete mode 100644 Libraries/vendor/core/getObjectValues.js diff --git a/Libraries/vendor/core/getObjectValues.js b/Libraries/vendor/core/getObjectValues.js deleted file mode 100644 index c8360297faa..00000000000 --- a/Libraries/vendor/core/getObjectValues.js +++ /dev/null @@ -1,30 +0,0 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @format - * @typechecks - */ - -'use strict'; - -/** - * Retrieve an object's values as an array. - * - * 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 getObjectValues(obj) { - const values = []; - for (const key in obj) { - values.push(obj[key]); - } - return values; -} - -module.exports = getObjectValues;