UNPKG

@salesforce/core

Version:

Core libraries to interact with SFDX projects, orgs, and APIs.

17 lines 607 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.unwrapArray = void 0; /* * Copyright (c) 2023, salesforce.com, inc. * All rights reserved. * Licensed under the BSD 3-Clause license. * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause */ const unwrapArray = (args) => { if (Array.isArray(args) && args.length === 1) { return Array.isArray(args[0]) ? (0, exports.unwrapArray)(args[0]) : args[0]; } return args; }; exports.unwrapArray = unwrapArray; //# sourceMappingURL=unwrapArray.js.map