Files
bzzz/install/config-ui/node_modules/safe-push-apply/index.js
anthonyrawlins c177363a19 Save current BZZZ config-ui state before CHORUS branding update
🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-19 00:19:00 +10:00

16 lines
386 B
JavaScript

'use strict';
var $TypeError = require('es-errors/type');
var isArray = require('isarray');
/** @type {import('.')} */
module.exports = function safePushApply(target, source) {
if (!isArray(target)) {
throw new $TypeError('target must be an array');
}
for (var i = 0; i < source.length; i++) {
target[target.length] = source[i]; // eslint-disable-line no-param-reassign
}
};