]> git.ipfire.org Git - thirdparty/moment.git/commit
[feature] Calendar function handles formats only arg (#3666)
authorJoe <josephjaniga@gmail.com>
Sat, 25 Apr 2020 20:04:33 +0000 (16:04 -0400)
committerGitHub <noreply@github.com>
Sat, 25 Apr 2020 20:04:33 +0000 (23:04 +0300)
commit8eb71ae271c23c36a5223459dfd4e779f4bedfa7
tree102482d853e96634937f205504c17446167d843c
parent16a14f82dea690686fe7e7d91f298561810d1cc0
[feature] Calendar function handles formats only arg (#3666)

* Issue no. 3658 adding overload for single parameter to calendar function

Corrected the formatting on calendarjs unit test file

Corrected autoformatting

* Removed trailing space...

* fixed comment per request

* added helper utils for better type and property checking, updated calendar functionality to properly identify time and formats inputs. added a bunch of unit tests
src/lib/moment/calendar.js
src/lib/utils/is-calendar-spec.js [new file with mode: 0644]
src/lib/utils/is-moment-input.js [new file with mode: 0644]
src/lib/utils/is-string.js [new file with mode: 0644]
src/test/moment/calendar.js