Skip to content

Latest commit

 

History

History

const

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

$mol_const

Returns closure that returns constant value. Value can be accessed by "()" field.

Usage example

namespace $ {
	
	const rnd = $mol_const( Math.random() )
	
	console.assert( rnd() === rnd['()'] )
	
}