Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

@uiw/utils

4.6.10 • Public • Published

@uiw/utils

Install

npm i @uiw/utils

Usage

import { isLeapYear, solarMonthDays } from '@uiw/utils';

isLeapYear

Determine whether it is a leap year

getFirstDayOfWeek

The first day of the month is the day of the week.

solarMonthDays

Get the sun moon, commonly known as the solar calendar month By calculating the second month of the leap year, maybe 29 days

isSameDate

Check if a date is the same as another date. Use Date.prototype.toISOString() and strict equality checking (===) to check if the first date is the same as the second one.

getScroll

Gets the scroll value of the given element in the given side (top and left)

randomid

randomid()
// "5fan4z7qsa"

Install

npm i @uiw/utils

DownloadsWeekly Downloads

126

Version

4.6.10

License

MIT

Unpacked Size

28 kB

Total Files

38

Last publish

Collaborators

  • avatar