[core][js] helpers: inspect