import AllowedMethodsService from 'kindergarten/src/kindergarten/utils/AllowedMethodsService.js'
AllowedMethodsService
Definition of AllowedMethodsService class.
This service is used to determine which methods can be safely used to extend a given object. This is useful for e.g. for sandbox to make sure the name of the purpose of one of the perimeters does not break anything.
Constructor Summary
Public Constructor | ||
public |
constructor(dummyObj: {}, isStrict: boolean) |
Method Summary
Public Methods | ||
public |
isRestricted(methodName: *): * Return true if method is not safe to use on the current object |
Public Constructors
Public Methods
public isRestricted(methodName: *): * source
Return true if method is not safe to use on the current object
Params:
Name | Type | Attribute | Description |
methodName | * |
Return:
* |