persona-community-5/.pnpm-store/v3/files/53/c0bd4a3c3edc9dc7f72a8eb4114fc19b7b0d89a33fdb27b34eaab5171b9e976d37546cd40113f73d58fe9599cc219bf4211a10e59ee4c1696d3d4bd780858c
rdev-worker a1d0d1bf1c
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
build: /implement-feature community-ui --requirements 'Build the React commu...
2026-02-24 08:22:30 +00:00

45 lines
1.2 KiB
Plaintext

'use strict';
Object.defineProperty(exports, "__esModule", { value: true });
function isNothing(subject) {
return (typeof subject === 'undefined') || (null === subject);
}
exports.isNothing = isNothing;
function isObject(subject) {
return (typeof subject === 'object') && (null !== subject);
}
exports.isObject = isObject;
function toArray(sequence) {
if (Array.isArray(sequence)) {
return sequence;
}
else if (isNothing(sequence)) {
return [];
}
return [sequence];
}
exports.toArray = toArray;
function extend(target, source) {
var index, length, key, sourceKeys;
if (source) {
sourceKeys = Object.keys(source);
for (index = 0, length = sourceKeys.length; index < length; index += 1) {
key = sourceKeys[index];
target[key] = source[key];
}
}
return target;
}
exports.extend = extend;
function repeat(string, count) {
var result = '', cycle;
for (cycle = 0; cycle < count; cycle += 1) {
result += string;
}
return result;
}
exports.repeat = repeat;
function isNegativeZero(number) {
return (0 === number) && (Number.NEGATIVE_INFINITY === 1 / number);
}
exports.isNegativeZero = isNegativeZero;
//# sourceMappingURL=common.js.map