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

gen-pasta

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gen-pasta

A collection of general functions that I have found myself copy pastaing around.

  • 0.0.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

#General Pasta

A collection of general functions that I have found myself copy pastaing around.

I am trying to separate the pasta into useful strands.

##log()

Takes any number of args and logs them if it can.

##slice(obj[, start, end])

Take an array like object and return a real array. Optional start/end.

##combine(obj1, obj2)

Add everything from obj2 into obj1 and return obj1.

##last(item)

Attempt to return the last element from item, whatever item might be.

##first(item)

Attempt to return the first element from item, whatever item might be.

##flatten(arr)

Steamrolls nested arrays into a string.

FAQs

Package last updated on 07 Feb 2013

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