cleanup and docs...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2020-04-20 23:29:40 +03:00
parent 9c263199a0
commit 4b6f12200e

View File

@ -13,12 +13,17 @@ var object = require('ig-object')
/*********************************************************************/
// Return value wrapper...
//
// Wrapping a value in this and returning it from an action will force
// the action to return the value as-is...
// This is mainly usefull for specially handled values.
var ASIS =
module.ASIS =
object.Constructor('ASIS', {
__init__: function(obj){ this.value = obj },
})
__init__: function(obj){ this.value = obj } })
// undefined wrapper...
var UNDEFINED =
module.UNDEFINED = ASIS(undefined)