MCPcopy
hub / github.com/date-fns/date-fns / isMatch

Function isMatch

pkgs/core/src/isMatch/index.ts:304–310  ·  view source on GitHub ↗
(
  dateStr: string,
  formatStr: string,
  options?: IsMatchOptions,
)

Source from the content-addressed store, hash-verified

302 * //=> true
303 */
304export function isMatch(
305 dateStr: string,
306 formatStr: string,
307 options?: IsMatchOptions,
308): boolean {
309 return isValid(parse(dateStr, formatStr, new Date(), options));
310}

Callers 2

test.tsFile · 0.90
test.tsFile · 0.90

Calls 2

isValidFunction · 0.90
parseFunction · 0.90

Tested by

no test coverage detected