clod
Version:
Utility library for JavaScript with basic functions.
17 lines (13 loc) • 325 B
JavaScript
obj = {length: 0, b: 2};
arr = [1, 2, 3, 4];
Person = function (first, last) {
this.name = {
first: first,
last: last,
};
};
Friend = new Person('Max', 'Muster');
const mockMath = Object.create(global.Math);
mockMath.random = () => 0.7755392978968529;
global.Math = mockMath;
str = 'DRFAAAAAAAXYZAAAAAAAAMUN';