Skip to content

Commit

Permalink
Changed isEmpty behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
rah-emil committed Aug 15, 2021
1 parent d2b7eaa commit 72a2ea6
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 10,284 deletions.
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 = {}
user.isEmpty() // true
isEmpty(user) // true
```

## Checking strings (RegExp)
Expand Down
7 changes: 5 additions & 2 deletions dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<script src="js-helpers.js"></script>

<script>
let locations = [
/*let locations = [
{name: "Moscow", coords: [55.79749504565197, 37.5407153847656]},
{name: "Voronezh", coords: [51.66109513550912, 39.19964245473753]},
{name: "Yaroslavl", coords: [57.62662119485742, 39.89367465100093]},
Expand All @@ -37,7 +37,10 @@
let myCoords = [52.7614485, 35.6722916]
console.log(Math.nearestDistance(locations, myCoords))
console.log(Math.nearestDistance(locations, myCoords))*/

let user = {}
console.log(isEmpty(user))
</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 72a2ea6

Please sign in to comment.