PHP 7.4.33
Preview: index.js Size: 386 B
/var/www/uibuilder.cmshelp.dk/httpdocs/node_modules/safe-push-apply/index.js
'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
	}
};

Directory Contents

Dirs: 2 × Files: 9
Name Size Perms Modified Actions
.github DIR
- drwxr-xr-x 2025-03-28 11:04:36
Edit Download
test DIR
- drwxr-xr-x 2025-03-28 11:04:36
Edit Download
201 B lrw-r--r-- 2025-03-28 11:04:36
Edit Download
216 B lrw-r--r-- 2025-03-28 11:04:36
Edit Download
810 B lrw-r--r-- 2025-03-28 11:04:36
Edit Download
119 B lrw-r--r-- 2025-03-28 11:04:36
Edit Download
386 B lrw-r--r-- 2025-03-28 11:04:36
Edit Download
1.05 KB lrw-r--r-- 2025-03-28 11:04:36
Edit Download
2.12 KB lrw-r--r-- 2025-03-28 11:04:36
Edit Download
2.04 KB lrw-r--r-- 2025-03-28 11:04:36
Edit Download
125 B lrw-r--r-- 2025-03-28 11:04:36
Edit Download
If ZipArchive is unavailable, a .tar will be created (no compression).