Skip to content

Commit

Permalink
Merge pull request #4 from sameer-ahmed/fix-typo
Browse files Browse the repository at this point in the history
fix typo
  • Loading branch information
sameer-ahmed committed Apr 18, 2018
2 parents 2928b6f + 0bd4e81 commit b59ea1b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ export const shallowEqual = (objA: mixed, objB: mixed): boolean => {
}

export const getStartOfDay = (date) => {
if (!isValidDate()) {
if (!isValidDate(date)) {
throw new Error('`date` is not a valid `Date` object')
}
if (Object.prototype.toString.call(date) !== '[object Date]') {
Expand All @@ -244,7 +244,7 @@ export const shallowEqual = (objA: mixed, objB: mixed): boolean => {
}

export const getEndOfDay = (date) => {
if (!isValidDate()) {
if (!isValidDate(date)) {
throw new Error('`date` is not a valid `Date` object')
}
var startOfDay = new Date(date.getFullYear(), date.getMonth(), date.getDate());
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "js-utils",
"version": "1.1.0",
"version": "1.1.1",
"description": "Simple ES6 Js utils",
"main": "index.js",
"repository": "https://github.com/sameer-ahmed/js-utils.git",
Expand Down

0 comments on commit b59ea1b

Please sign in to comment.