🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

any-object

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

any-object

Any type object

latest
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source
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

Keywords

type

FAQs

Package last updated on 09 Jun 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts