Observed since 20 Oct, 18:31 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
One line of code as a library
A library of witty Javascript one-liner functions. The 1loc.dev website has a collection of useful Javascript one-liners, now you get to use them in your Javascript projects.
One Liners are great, but the rest of your team would appreciate a little more clarity, So we've abstracted them for you, as readeable function names, so you and your teammates can focus on important stuff.
Install the 1Loc library using yarn or npm
yarn add 1loc
or using npm
npm i 1loc --save
import { cloneArray } from '1loc'
const myArray = [{ name: 'me', age: 2}]
const arrayClone = cloneArray(myArray) // [{ name: 'me', age: 2}]
More Examples
import { arrayHasSameValues } from '1loc'
const hasSameValues = arrayHasSameValues([1, 2, 4], [4, 1, 2])
console.log(hasSameValues) // true
You can also visit the original 1loc website here.
Here's a collection of function definitions and what they do.
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 1.2.0Registry latest | 5 Apr 2023 | 17 | |
| 1.1.9 | 5 Apr 2023 | 17 | |
| 1.1.8 | 5 Apr 2023 | 17 | |
| 1.1.7 | 5 Apr 2023 | 17 | |
| 1.1.6 | 22 Sept 2021 | 17 | |
| 1.1.5 | 22 Sept 2021 | 17 | |
| 1.1.4 | 22 Sept 2021 | 17 | |
| 1.1.3 | 22 Sept 2021 | 17 | |
| 1.1.2 | 22 Sept 2021 | 17 | |
| 1.1.1 | 22 Sept 2021 | 17 | |
| 1.1.0 | 9 Sept 2021 | 15 | |
| 1.0.9 | 9 Sept 2021 | 15 | |
| 1.0.8 | 9 Sept 2021 | 15 | |
| 1.0.7 | 7 Sept 2021 | 14 | |
| 1.0.4 | 7 Sept 2021 | 14 | |
| 1.0.3 | 7 Sept 2021 | 14 | |
| 1.0.2 | 7 Sept 2021 | 14 | |
| 1.0.1 | 5 Sept 2021 | 11 | |
| 1.0.0 | 5 Sept 2021 | 11 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 18:31 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:c2449b1f43e6889388b0111a3856a75f1234cba38f7b407feaeb3a5dd17d24c3