Skip to content

Commit

Permalink
docs: updates on workflows
Browse files Browse the repository at this point in the history
Added information on documentation
  • Loading branch information
ADMSK\AVROGAL1 committed Mar 22, 2021
1 parent 3b929ee commit bba061d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ export const hasProperty = (obj: any, prop: PropertyKey): boolean => {
return prop in obj || prop in proto || proto[prop] === obj[prop]
}

export const isBlankString = (value: string): boolean => {
return !value || /^\s*$/.test(value)
}

export const getPropertyByKeys = <T>(obj: T, keys: PropertyKey[]): any => {
for (const key of keys) {
obj = obj && obj[key]
Expand Down
4 changes: 4 additions & 0 deletions src/validators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ export const getType = (obj: any): string => {
.toLowerCase()
}

export const isBlankString = (value: string): boolean => {
return !value || /^\s*$/.test(value)
}

export const isNull = (value: any): boolean => {
return value === null
}
Expand Down

0 comments on commit bba061d

Please sign in to comment.