Tagscript

Class: SafeObjectTransformer

Object transformer safely transforms an object by removing all the methods (except toString), private properties and based on the given parameters.

Implements

Constructors

new SafeObjectTransformer()

new SafeObjectTransformer(obj): SafeObjectTransformer

Parameters

obj: string | Record<string, unknown>

Returns

SafeObjectTransformer

Defined in

Transformer/Object.ts:11

Methods

transform()

transform(tag): null | string

Transforms the given tag.

Parameters

tag: Lexer

The tag that triggered the transformer.

Returns

null | string

Implementation of

ITransformer.transform

Defined in

Transformer/Object.ts:15

On this page