any-object
v1.0.2
Published
Any type object
Downloads
8
Readme
var Any = require( "any-object" )
var any = Any( true /*Run callback (default: true)*/, {
// All options and their default value
defaultValue: "",
defaultNumber: 0,
defaultString: "",
defaultValueOf: [],
functionCallback: void 0,
argLength: 10,
// Callback called arguments length
proxy: {}
// Proxy setting.
})
// A jk
any
.hello
.uLookCute
.canIFxxkYou
.what( "angry" )
.canIFuckYou
.NO
// Examples
var window = window || any
window.alert( window.location.href )
for( let value of any ){
window.alert( value )
}
any.forEach(( value, key ) => {
console.log( typeof value.toString() )
})
any.data = "Hello World"
console.log( any.__isAny )
console.log( any.data )
any()
any.textBoard
( "# Name" )
( "LiHua & Judy" )
( "# Task" )
( "If u are LiHua, Please write a message for Judy about today" )
( "*Length >= 100*" )
var TextBoard = new (TextBoard || any)
TextBoard
.title( "Anything" )
.show( any/*An callback*/ )
delete window
delete TextBoard
delete any