Socket
Book a DemoInstallSign in
Socket

unlibjs

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unlibjs

jff utility library

0.0.1
latest
Source
npmnpm
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

JavaScript Style Guide

unlib.js

Although the library may be useful for solving real life problems, it has been created primarily for educational purposes.

The content of unlib.js originates from various JavaScript interview tasks, and therefore provides information on different algorithms and coding techniques. You are encouraged to contribute to the knowledge, including:

  • Suggest new functionality via Issues
  • Write new or work on existing implementations
  • Add new tests; we use Jest
  • Analyze and improve performance of library functions

Methods

online

For given lists of presence hours of several users, returns the intervals when all of them were online.

unlibjs.online(
  [[8, 12], [17, 22]],
  [[5, 11], [14, 18], [20, 23]]
) // -> [[8, 11], [17, 18], [20, 22]]

rle

Implements a Run-Length Encoding algorithm on A-Z strings.

unlibjs.rle('ABBCCC') // -> AB2C3

FAQs

Package last updated on 09 Jul 2020

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.