{"size": 1228, "ext": "js", "max_stars_repo_path": "lib/object-values-polyfill.js", "max_stars_repo_name": "mauro-d/hertzy", "max_stars_repo_stars_event_min_datetime": "2017-12-18T09:38:38.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-16T07:41:19.000Z", "max_issues_repo_path": "lib/object-values-polyfill.js", "max_issues_repo_name": "mauro-d/hertzy", "max_issues_repo_issues_event_min_datetime": "2017-12-22T00:23:17.000Z", "max_issues_repo_issues_event_max_datetime": "2019-06-01T05:56:50.000Z", "max_forks_repo_path": "lib/object-values-polyfill.js", "max_forks_repo_name": "mauro-d/hertzy", "max_forks_repo_forks_event_min_datetime": "2018-05-14T21:07:57.000Z", "max_forks_repo_forks_event_max_datetime": "2020-12-02T06:23:40.000Z"}
{"max_stars_count": 50, "max_issues_count": 15, "max_forks_count": 4, "avg_line_length": 34.1111111111, "max_line_length": 81, "alphanum_fraction": 0.6123778502}
/** *****************************************************************************
 * Copyright (c) Nicola Del Gobbo
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the license at http://www.apache.org/licenses/LICENSE-2.0
 *
 * THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS
 * OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY
 * IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
 * MERCHANTABLITY OR NON-INFRINGEMENT.
 *
 * See the Apache Version 2.0 License for specific language governing
 * permissions and limitations under the License.
 *
 * Contributors - initial API implementation:
 * Nicola Del Gobbo <nicoladelgobbo@gmail.com>
 ***************************************************************************** */

'use strict'

let objectValues = obj => {
    const values = []
    for (const key in obj) {
        if (obj.hasOwnProperty(key)) {
            values.push(obj[key])
        }
    }
    return values
}

if (typeof Object.values === 'function') {
    objectValues = Object.values
}

module.exports = objectValues
