
Research
/Security News
Miasma Mini Shai-Hulud Hits ImmobiliareLabs npm Packages
Miasma Mini Shai-Hulud hits @immobiliarelabs Backstage plugins, targeting GitLab and LDAP auth packages on npm.
jsonasarray
Advanced tools
Using Json as smooth as Array
// just for testing
const x = { z: 0, a: 11, b: 22, c: 33 };
x.count; // 4
x.keys(); // ['z', 'a', 'b', 'c']
x.values(); // ['z', 'a', 'b', 'c']
x.forEach((value, key) => {
console.log(key, value);
});
// z: 0, a: 11, b: 22, c: 33
x.map((value, key) => {
return value + 1;
});
// { z: 1, a: 12, b: 23, c: 34 }
x.filter((value, key) => {
return value > 1;
});
// { b: 22, c: 33 }
x.some((value, key) => {
return value > 0;
});
// true
x.every((value, key) => {
return value > 0;
});
// false
x.includes(22); // true
x.indexOf(22); // 2
x.unshift({ v: 100 }); // 5
// x: { v: 100, z: 0, a: 11, b: 22, c: 33 }
x.push({ v: 100 }); // 5
// x: { z: 0, a: 11, b: 22, c: 33, v: 100 }
x.shift(); // { z: 0 }
// x: { a: 11, b: 22, c: 33 }
x.pop(); // { c: 33 }
// x: { z: 0, a: 11, b: 22 }
x.slice(1, 2); // { a: 11, b: 22 }
// x: { z: 0, a: 11, b: 22, c: 33 }
x.splice(2, 1, { v: 100, w: 200 }); // { b: 22 }
// x: { z: 0, a: 11, v: 100, w: 200, c: 33 }
x.join(); // '0,11,22,33'
x.join('.', 'key'); // 'z.a.b.c'
x.concat({ v: 100 }, { w: 200 }); // { z: 0, a: 11, b: 22, c: 33, v: 100, w: 200 }
// x: { z: 0, a: 11, b: 22, c: 33 }
FAQs
use Json as Array
The npm package jsonasarray receives a total of 4 weekly downloads. As such, jsonasarray popularity was classified as not popular.
We found that jsonasarray demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
Miasma Mini Shai-Hulud hits @immobiliarelabs Backstage plugins, targeting GitLab and LDAP auth packages on npm.

Security News
Rolldown paused Rust React Compiler integration after a 5MB binary size increase raised concerns about shipping React-specific code to all Vite users.

Security News
/Research
Mini Shai-Hulud expands into the Go ecosystem after hitting LeoPlatform npm packages and targeting GitHub Actions workflows.