UNPKG

lamed_test

Version:
16 lines (12 loc) 764 B
# Function unZip (func, testValue, objectCheck, throwError) >**unZip**(func, testValue, objectCheck, throwError) - Trace the function calling code and then execute it. If test value is provided and do not match -> throw error - **Return {bool}** - True if the func() === testValue - See [Functions](../functions.md) ## Parameters | Parameter |Type |Default |Description | | ---- | ---- | ---- | ---- | **func** |function | |The function to print and execute | **testValue** |any | |The value to test the result against. If no value provided the function and the result will be printed | **objectCheck** |bool |true |If true perform a loose check (like NaN === Null --> true) | **throwError** |bool |true |If true and the values does not match -> throw error |