Helpers/checker
hasBrowserColorPicker
hasBrowserColorPicker(): boolean
Check if browser has a color picker (a new HTML5 attribute for input tag)
Returns
boolean
Defined in
src/core/helpers/checker/has-browser-color-picker.ts#16
isAbortError
isAbortError(error
): error is AbortError
Parameters
Name | Type |
---|---|
error |
unknown |
Returns
error is AbortError
Defined in
src/core/helpers/checker/is-abort-error.ts#13
isArray
isArray<T
>(elm
): elm is T[]
Check if element is array
Type parameters
Name | Type |
---|---|
T |
any |
Parameters
Name | Type |
---|---|
elm |
unknown |
Returns
elm is T[]
Defined in
src/core/helpers/checker/is-array.ts#14
isBoolean
isBoolean(elm
): elm is boolean
Parameters
Name | Type |
---|---|
elm |
unknown |
Returns
elm is boolean
Defined in
src/core/helpers/checker/is-boolean.ts#11
isEqual
isEqual(a
, b
): boolean
Check two element are equal
Parameters
Name | Type |
---|---|
a |
unknown |
b |
unknown |
Returns
boolean
Defined in
src/core/helpers/checker/is-equal.ts#16
isFastEqual
isFastEqual(a
, b
): boolean
Parameters
Name | Type |
---|---|
a |
unknown |
b |
unknown |
Returns
boolean
Defined in
src/core/helpers/checker/is-equal.ts#20
isFunction
isFunction(value
): value is Function
Check value is Function
Parameters
Name | Type |
---|---|
value |
unknown |
Returns
value is Function
Defined in
src/core/helpers/checker/is-function.ts#14
isHtmlFromWord
isHtmlFromWord(data
): boolean
Detect if string is HTML from MS Word or Excel
Parameters
Name | Type |
---|---|
data |
string |
Returns
boolean
Defined in
src/core/helpers/checker/is-html-from-word.ts#14
isHTML
isHTML(str
): str is string
Check if a string is html or not
Parameters
Name | Type |
---|---|
str |
unknown |
Returns
str is string
Defined in
src/core/helpers/checker/is-html.ts#16
isInitable
isInitable(value
): value is IInitable
Check value has method init
Parameters
Name | Type |
---|---|
value |
unknown |
Returns
value is IInitable
Defined in
src/core/helpers/checker/is-imp-interface.ts#20
isDestructable
isDestructable(value
): value is IDestructible
Check value has method destruct
Parameters
Name | Type |
---|---|
value |
unknown |
Returns
value is IDestructible
Defined in
src/core/helpers/checker/is-imp-interface.ts#27
hasContainer
hasContainer(value
): value is IContainer
Check value is instant that implements IContainer
Parameters
Name | Type |
---|---|
value |
unknown |
Returns
value is IContainer
Defined in
src/core/helpers/checker/is-imp-interface.ts#34
isInt
isInt(value
): boolean
Check value is Int
Parameters
Name | Type |
---|---|
value |
string | number |
Returns
boolean
Defined in
src/core/helpers/checker/is-int.ts#17
isJoditObject
isJoditObject(jodit
): jodit is IJodit
Check if element is instance of Jodit
Parameters
Name | Type |
---|---|
jodit |
unknown |
Returns
jodit is IJodit
Defined in
src/core/helpers/checker/is-jodit-object.ts#18
isLicense
isLicense(license
): boolean
Parameters
Name | Type |
---|---|
license |
string |
Returns
boolean
Defined in
src/core/helpers/checker/is-license.ts#13
isMarker
isMarker(elm
): elm is HTMLElement
Define element is selection helper
Parameters
Name | Type |
---|---|
elm |
Nullable <Node > |
Returns
elm is HTMLElement
Defined in
src/core/helpers/checker/is-marker.ts#18
isNativeFunction
isNativeFunction(f
): boolean
Check if function or method was not replaced on some custom implementation
Parameters
Name | Type |
---|---|
f |
Function |
Returns
boolean
Defined in
src/core/helpers/checker/is-native-function.ts#14
isNumber
isNumber(value
): value is number
Check value is a number
Parameters
Name | Type |
---|---|
value |
unknown |
Returns
value is number
Defined in
src/core/helpers/checker/is-number.ts#14
isNumeric
isNumeric(value
): boolean
Check value has numeric format
Parameters
Name | Type |
---|---|
value |
string | number |
Returns
boolean
Defined in
src/core/helpers/checker/is-numeric.ts#16
isPlainObject
isPlainObject<T
>(obj
): obj is IDictionary<T>
Check if element is simple plaint object
Type parameters
Name |
---|
T |
Parameters
Name | Type |
---|---|
obj |
any |
Returns
obj is IDictionary<T>
Defined in
src/core/helpers/checker/is-plain-object.ts#18
isPromise
isPromise(val
): val is Promise<any>
Parameters
Name | Type |
---|---|
val |
any |
Returns
val is Promise<any>
Defined in
src/core/helpers/checker/is-promise.ts#11
isSet
isSet<T
>(elm
): elm is Set<T>
Check if element is set
Type parameters
Name | Type |
---|---|
T |
any |
Parameters
Name | Type |
---|---|
elm |
unknown |
Returns
elm is Set<T>
Defined in
src/core/helpers/checker/is-set.ts#16
isString
isString(value
): value is string
Check value is String
Parameters
Name | Type |
---|---|
value |
unknown |
Returns
value is string
Defined in
src/core/helpers/checker/is-string.ts#16
isStringArray
isStringArray(value
): value is string[]
Check value is Array of String
Parameters
Name | Type |
---|---|
value |
unknown |
Returns
value is string[]
Defined in
src/core/helpers/checker/is-string.ts#23
isURL
isURL(str
): boolean
Check if a string is an url
Parameters
Name | Type |
---|---|
str |
string |
Returns
boolean
Defined in
src/core/helpers/checker/is-url.ts#16
isValidName
isValidName(name
): boolean
Check if name has a normal format
Parameters
Name | Type |
---|---|
name |
string |
Returns
boolean
Defined in
src/core/helpers/checker/is-valid-name.ts#14
isViewObject
isViewObject(jodit
): jodit is IViewBased<IViewOptions>
Check if an element is instance of View
Parameters
Name | Type |
---|---|
jodit |
unknown |
Returns
jodit is IViewBased<IViewOptions>
Defined in
src/core/helpers/checker/is-view-object.ts#18
isVoid
isVoid(value
): value is undefined | null
Check value is undefined or null
Parameters
Name | Type |
---|---|
value |
unknown |
Returns
value is undefined | null
Defined in
src/core/helpers/checker/is-void.ts#14
isWindow
isWindow(obj
): boolean
Parameters
Name | Type |
---|---|
obj |
object |
Returns
boolean
Defined in
jodit/src/core/helpers/checker/is-window.ts:11