This plugin provides a Python-like isocalendar method to moment objects.
Simply call the
isocalendar method on any moment object. It returns an array
of four items:
;// [2011, 51, 5, 870]
Additionally, there is a function that provides the inverse functionality, it takes an isocalendar array and returns a moment object.
moment;// "Friday, December 23 2011 2:30 PM"
Make sure you have all the dependencies and run
make test. If you want to
test in the browser, visit the