Home Reference Source Test Repository

Function

Static Public Summary
public

difference(obj1: Object, obj2: Object): Object

Diff of Object

public

Return pattern type (cron or date)

public

is Cron pattern

Static Public

public difference(obj1: Object, obj2: Object): Object source

Diff of Object

Params:

NameTypeAttributeDescription
obj1 Object

target object

obj2 Object

target object

Return:

Object

public getPatternType(pattern: string): string source

import {getPatternType} from '@moqada/hubot-schedule-helper/src/utils.js'

Return pattern type (cron or date)

Params:

NameTypeAttributeDescription
pattern string

pattern string

Return:

string

public isCronPattern(pattern: string): boolean source

import {isCronPattern} from '@moqada/hubot-schedule-helper/src/utils.js'

is Cron pattern

Params:

NameTypeAttributeDescription
pattern string

pattern string

Return:

boolean