Comparing version 0.1.13 to 0.1.14
{ | ||
"name": "pedash", | ||
"version": "0.1.13", | ||
"version": "0.1.14", | ||
"description": "A lodash-like javascript helper -- for dummies", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -20,3 +20,2 @@ ## Pedash 🌶 | ||
const foods = ["Pizza", "Lasagna", "Karedok", "Banana split", "Rendang", "Souffle"]; | ||
console.log(getLongest(foods)); | ||
@@ -34,4 +33,6 @@ | ||
import { getCharCountsByKey } from 'pedash' | ||
const chars = [34, 2, 90, 99, 45, 99, 99, 34] | ||
console.log(getCharCountsByKey(chars)) | ||
// {2: 1, 34: 2, 45: 1, 90: 1, 99: 3} | ||
@@ -44,3 +45,5 @@ ``` | ||
import { randomId } from 'pedash' | ||
console.log(randomId()) | ||
// "t536fwpn1je" | ||
@@ -64,3 +67,5 @@ ``` | ||
]; | ||
console.log(getLongest(peopleObj, "name")) | ||
// "Batugana" | ||
@@ -73,4 +78,6 @@ ``` | ||
import { getUnique } from 'pedash' | ||
const uniqueValues = [100, 44, 30, 100, 54, 54]; | ||
console.log(getUnique(uniqueValues)) | ||
// [100, 44, 30, 54] | ||
@@ -83,2 +90,3 @@ ``` | ||
import { groupByKey } from 'pedash' | ||
const valObj = [ | ||
@@ -90,3 +98,5 @@ { id: 1, name: "Glenn", age: 56 }, | ||
]; | ||
console.log(groupByKey(valObj, "name")) | ||
// { | ||
@@ -104,4 +114,6 @@ // Glenn: { id: 1, name: "Glenn", age: 56 }, | ||
import { getHighest } from 'pedash' | ||
const numbers = [34, 2300, 56, 900]; | ||
console.log(getHighest(numbers)) | ||
// 2300 | ||
@@ -115,5 +127,3 @@ ``` | ||
// Then use it whatever you like | ||
const numbers = [56, 89, 21, 20, 7]; | ||
console.log(shuffle(numbers)); | ||
@@ -129,5 +139,3 @@ | ||
// Then use it whatever you like | ||
const sentence = "You you can do it now now" | ||
console.log(removeDoubleWords(sentence)); | ||
@@ -143,5 +151,3 @@ | ||
// Then use it whatever you like | ||
const sentence = " You you can do it now or never " | ||
console.log(removeWhitespaces(sentence)); | ||
@@ -157,5 +163,3 @@ | ||
// Then use it whatever you like | ||
const tags = "<p><em>Hello</em> <strong>world!</strong></p>" | ||
console.log(stripTags(tags)); | ||
@@ -162,0 +166,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
157
5658