Skip to content

Commit

Permalink
publish v 1.2.0
Browse files Browse the repository at this point in the history
- add unit tests
- isEmpty replaced by isNotEmpty
- improvements and other functions improved
  • Loading branch information
rah-emil committed Aug 30, 2021
1 parent 72a2ea6 commit 014959f
Show file tree
Hide file tree
Showing 14 changed files with 16,013 additions and 1,033 deletions.
1 change: 1 addition & 0 deletions .idea/js-helpers.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/jsLibraryMappings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ product.reviews.average('stars') // 3.72
With this check, your code will look more elegant.
```javascript
let user = {}
isEmpty(user) // true
user.isNotEmpty() // false
```

## Checking strings (RegExp)
Expand Down
20 changes: 3 additions & 17 deletions dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,27 +20,13 @@
</style>
</head>
<body>


<script src="js-helpers.js"></script>

<script>
/*let locations = [
{name: "Moscow", coords: [55.79749504565197, 37.5407153847656]},
{name: "Voronezh", coords: [51.66109513550912, 39.19964245473753]},
{name: "Yaroslavl", coords: [57.62662119485742, 39.89367465100093]},
{name: "Rybinsk", coords: [58.04855727216249, 38.85813673976128]},
{name: "Ivanovo", coords: [57.00040249293972, 40.973840485275254]},
{name: "Kursk", coords: [51.73096145146215, 36.192820361190755]},
{name: "Bryansk", coords: [53.243644660620774, 34.36328412094874]},
]
let myCoords = [52.7614485, 35.6722916]
console.log(Math.nearestDistance(locations, myCoords))*/

let user = {}
console.log(isEmpty(user))
let numbers = [854, 1, 8, 4, 7, 4354];
console.log(numbers.deleteItems([4, 1, 8]));
</script>
</body>
</html>
2 changes: 1 addition & 1 deletion dist/js-helpers.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 014959f

Please sign in to comment.