STEPS
-
Click on Help menu
-
Select Enter License
-
Then paste given KEY given at bottom
-
Finally click on Use License
STEPS
Click on Help menu
Select Enter License
Then paste given KEY given at bottom
Finally click on Use License
const obj = { a: 1, c: 3, b: 2 } | |
// Map from object. | |
const myMap = new Map(Object.entries(obj)) | |
// Map to Object. | |
// NOTE: Keys will be cast to strings by `.toString`, so any "complex" key like for example `[1, 2]` will become `1,2` | |
const newObj = [...myMap.entries()] | |
.reduce((acc, [key, value]) => (Object.assign(acc, { [key]: value })), {}) |
import Konva from 'konva'; | |
import { ShapeConfig } from 'konva/lib/Shape'; | |
export class HistoryStat { | |
private static _instance: HistoryStat; | |
public _currentStat: any[] = []; | |
private _currentPointer: number = -1; | |
private _history: Array<Object[]> = []; |