mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-23 23:27:09 +00:00
Show nested feature decorators in a list (#173)
* Show nested feature decorators in a list * Fix swapping decorator indices * Move wrapper model creation to separate function * Add setting string node on enter
This commit is contained in:
@@ -7,6 +7,10 @@ export function isPromise(obj: any): obj is Promise<any> {
|
||||
return typeof (obj as any)?.then === 'function'
|
||||
}
|
||||
|
||||
export function isObject(obj: any) {
|
||||
return typeof obj === 'object' && obj !== null
|
||||
}
|
||||
|
||||
const dec2hex = (dec: number) => ('0' + dec.toString(16)).substr(-2)
|
||||
|
||||
export function hexId(length = 12) {
|
||||
|
||||
Reference in New Issue
Block a user