26 lines
1.1 KiB
JavaScript
26 lines
1.1 KiB
JavaScript
![]() |
(function (factory) {
|
||
|
if (typeof module === "object" && typeof module.exports === "object") {
|
||
|
var v = factory(require, exports);
|
||
|
if (v !== undefined) module.exports = v;
|
||
|
}
|
||
|
else if (typeof define === "function" && define.amd) {
|
||
|
define(["require", "exports"], factory);
|
||
|
}
|
||
|
})(function (require, exports) {
|
||
|
/*---------------------------------------------------------------------------------------------
|
||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||
|
*--------------------------------------------------------------------------------------------*/
|
||
|
'use strict';
|
||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||
|
exports.isDefined = exports.values = void 0;
|
||
|
function values(obj) {
|
||
|
return Object.keys(obj).map(key => obj[key]);
|
||
|
}
|
||
|
exports.values = values;
|
||
|
function isDefined(obj) {
|
||
|
return typeof obj !== 'undefined';
|
||
|
}
|
||
|
exports.isDefined = isDefined;
|
||
|
});
|