const trackable = Symbol ( 'trackable' ) ; export function Trackable ( isTrackable = true ) { return function ( target ) { Reflect . defineMetadata ( trackable , isTrackable , target ) ; return target ; } ; } Trackable . isTrackable = function ( target ) { return ! ! Reflect . getMetadata ( trackable , target . constructor ) ; } ;