Catalog npm
PACKAGE EXPLORERView in registry

1loc

npm

One line of code as a library

1loc
Versions collected19
Direct dependencies17From release 1.2.0
Last observed20 Oct, 18:31 UTC

README

Current package documentation

1Loc Lib

Commitizen friendly

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.

TOC

Getting Started

Install the 1Loc library using yarn or npm

yarn add 1loc

or using npm

npm i 1loc --save

Import Any One-liner and use

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

Explore a list of possible One-liners

Documentation Here

You can also visit the original 1loc website here.

One Liners

Here's a collection of function definitions and what they do.

Contribution

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 19

Collected releases
VersionPublishedDirect dependenciesOpen version
1.2.0Registry latest5 Apr 202317
1.1.95 Apr 202317
1.1.85 Apr 202317
1.1.75 Apr 202317
1.1.622 Sept 202117
1.1.522 Sept 202117
1.1.422 Sept 202117
1.1.322 Sept 202117
1.1.222 Sept 202117
1.1.122 Sept 202117
1.1.09 Sept 202115
1.0.99 Sept 202115
1.0.89 Sept 202115
1.0.77 Sept 202114
1.0.47 Sept 202114
1.0.37 Sept 202114
1.0.27 Sept 202114
1.0.15 Sept 202111
1.0.05 Sept 202111

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
martinsonuoha/1loc-lib

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 18:31 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:c2449b1f43e6889388b0111a3856a75f1234cba38f7b407feaeb3a5dd17d24c3