]> git.ipfire.org Git - thirdparty/moment.git/commit
[bugfix] isBetween should return false for invalid dates (#4417)
authorAsh <ash@hexmen.com>
Thu, 13 Dec 2018 05:15:31 +0000 (05:15 +0000)
committerKunal Marwaha <marwahaha@berkeley.edu>
Thu, 13 Dec 2018 05:15:31 +0000 (21:15 -0800)
commit40b52a0333f2620f1c3fc3bdad7dc71b5941c13f
tree54a23ccbab4977ad8b19d64df237011ae293a8f7
parent155ce4bf2f6855a0a79e7bc611e285cefd777ebf
[bugfix] isBetween should return false for invalid dates (#4417)

* [bugfix]: isBetween should return false for invalid dates

* Tweak to use void not null for TS 1.x

* Add tests requested in code review
moment.d.ts
src/lib/moment/compare.js
src/test/moment/is_between.js
typing-tests/moment-tests.ts