Comparing version 0.1.19 to 0.1.20
{ | ||
"name": "pedash", | ||
"version": "0.1.19", | ||
"version": "0.1.20", | ||
"description": "A lodash-like javascript helper -- for dummies", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -19,3 +19,3 @@ ## Pedash 🌶 | ||
``` | ||
```javascript | ||
import { getLongest } from pedash; | ||
@@ -35,4 +35,4 @@ | ||
``` | ||
import { getCharCountsByKey } from 'pedash' | ||
```javascript | ||
import { getCharCountsByKey } from "pedash" | ||
@@ -47,4 +47,4 @@ const chars = [34, 2, 90, 99, 45, 99, 99, 34] | ||
``` | ||
import { randomId } from 'pedash' | ||
```javascript | ||
import { randomId } from "pedash" | ||
@@ -58,10 +58,11 @@ console.log(randomId()) | ||
``` | ||
import { getLongest } from 'pedash' | ||
```javascript | ||
import { getLongest } from "pedash" | ||
const people = ["Sid", "Rusmanto", "Udin", "Zainab"]; | ||
console.log(getLongest(people)); | ||
const people = ["Sid", "Rusmanto", "Udin", "Zainab"] | ||
console.log(getLongest(people)) | ||
// "Rusmanto" | ||
const peopleObj = [ // if the argument is in an array of objects shape | ||
const peopleObj = [ | ||
// if the argument is in an array of objects shape | ||
{ id: 1, name: "Glenn" }, | ||
@@ -71,3 +72,3 @@ { id: 2, name: "Abi" }, | ||
{ id: 4, name: "Zulu" } | ||
]; | ||
] | ||
@@ -81,6 +82,6 @@ console.log(getLongest(peopleObj, "name")) | ||
``` | ||
import { getUnique } from 'pedash' | ||
```javascript | ||
import { getUnique } from "pedash" | ||
const uniqueValues = [100, 44, 30, 100, 54, 54]; | ||
const uniqueValues = [100, 44, 30, 100, 54, 54] | ||
console.log(getUnique(uniqueValues)) | ||
@@ -93,4 +94,4 @@ | ||
``` | ||
import { groupByKey } from 'pedash' | ||
```javascript | ||
import { groupByKey } from "pedash" | ||
@@ -102,3 +103,3 @@ const valObj = [ | ||
{ id: 4, name: "Zulu", age: 45 } | ||
]; | ||
] | ||
@@ -117,4 +118,4 @@ console.log(groupByKey(valObj, "name")) | ||
``` | ||
import { getSmallest } from 'pedash' | ||
```javascript | ||
import { getSmallest } from "pedash" | ||
@@ -135,6 +136,6 @@ const nums = [34, 90, 78, 100, 12] | ||
``` | ||
import { getHighest } from 'pedash' | ||
```javascript | ||
import { getHighest } from "pedash" | ||
const numbers = [34, 2300, 56, 900]; | ||
const numbers = [34, 2300, 56, 900] | ||
console.log(getHighest(numbers)) | ||
@@ -147,3 +148,3 @@ | ||
``` | ||
```javascript | ||
import { shuffle } from pedash; | ||
@@ -159,3 +160,3 @@ | ||
``` | ||
```javascript | ||
import { removeDoubleWords } from pedash; | ||
@@ -171,3 +172,3 @@ | ||
``` | ||
```javascript | ||
import { removeWhitespaces } from pedash; | ||
@@ -183,3 +184,3 @@ | ||
``` | ||
```javascript | ||
import { stripTags } from pedash; | ||
@@ -195,3 +196,3 @@ | ||
``` | ||
```javascript | ||
import { getParamsToObject } from pedash; | ||
@@ -207,3 +208,3 @@ | ||
``` | ||
```javascript | ||
import { renameKeys } from pedash; | ||
@@ -219,3 +220,3 @@ | ||
``` | ||
```javascript | ||
import { getRandomInRange } from pedash; | ||
@@ -222,0 +223,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8094
213