Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

electrum-utils

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

electrum-utils

Utilities for Electrum.

  • 1.6.6
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Electrum utilities

React components which work with Electrum might need some of the functionality provided by these utility functions.

  • getInstanceMethodNames (obj, stop) → gets an array of method names by walking obj's prototype chain until (optional) prototype stop is reached.
    See Enumerating methods on a JavaScript class instance for a discussion on how this works.

  • getTextSelection (element) → gets the selection as an object containing a from and a to position. Example selection: {from: 3, to: 8}. Cursor position without selection: from: 3, to: 3}.

  • shallowEqual (objA, objB) → returns true if both objects contain the same keys and values (the comparison is done by reference equality).

  • startsWithLowerCase (string) → returns true if the text starts with a lower case character (a-z, no accented characters).

  • startsWithUpperCase (string) → returns true if the text starts with an upper case character (A-Z, no accented characters).

FAQs

Package last updated on 02 Apr 2017

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