Socket
Socket
Sign inDemoInstall

atma-utils

Package Overview
Dependencies
Maintainers
1
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

atma-utils

Helpers


Version published
Maintainers
1
Created
Source

Util Functions

Build Status

Embeddable: all functions are in the toplevel scope.

  • Object

    • obj_getProperty(obj, path)
    • obj_setProperty(obj, path, val)
    • obj_extend(a, b)
    • obj_extendMany(a, [ ...args])
    • obj_create(obj)
  • Array

    • arr_remove
  • Function

    • fn_proxy(fn, ctx)
    • fn_doNothing
  • is

    • is_Function(x)
    • is_String(x)
    • is_notEmptyString(x)
    • is_Array(x)
    • is_ArrayLike(x)
    • is_Object(x)
    • is_rawObject(x)
  • class

    • class_create([...Base:Function|Object], Proto:Object)

      Proto := Object {
      	constructor: Function,
      	...
      }
      
    • class_createEx

      Similar to class_create but also handles the property accessors. The class_create is in this way much more simple and has better performance.

    • class_Dfr

      Promise

    • class_EventEmitter

      Event Emitter

  • error

    • error_createClass(name:String, Proto:Object):Function
    • error_formatSource(source:String, index:Number, ?filename:String):String
    • error_cursor(source:String, index:Number):Array<lines, lineNum, rowNum>
    • error_formatCursor(lines:Array, lineNum: Number, rowNum: Number):String
  • Prototype fn references

    • _Array_slice
    • _Array_splice
    • _Array_indexOf
    • _Obj_hasOwnProp_

:copyright: 2015 - MIT - Atma.js

FAQs

Package last updated on 05 Jul 2015

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc