UNPKG

469 BJavaScriptView Raw
1/**
2 * Copyright (c) 2019-present, Facebook, Inc.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 *
7 *
8 */
9
10/* eslint-disable no-redeclare */
11// $FlowFixMe workaround for: https://github.com/facebook/flow/issues/5838
12var objectEntries = Object.entries || function (obj) {
13 return Object.keys(obj).map(function (key) {
14 return [key, obj[key]];
15 });
16};
17
18export default objectEntries;
\No newline at end of file