Skip to content

Module: core::validateTrait

Jovan Gerodetti edited this page Apr 14, 2021 · 4 revisions

validateTrait(target, trait) => {boolean}

exported: default
kind: function
declaration: const

Validates if an object satifies a certain trait.

Name Type Description
target object the object to Validate
trait object the trait which has to be satified

Clone this wiki locally