Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript. Learn more »

stack-overflow-copy-paste

1.94.0 • Public • Published

stack-overflow-copy-paste

A collection of utility JavaScript functions copy/pasted and slightly modified from StackOverflow answers 😀 (Not intended to be used in actual programs)

travis build codecov coverage version downloads MIT License semantic-release PRs Welcome Commitizen friendly

This repo is used as the basis for an Egghead.io series entitled: How to Contribute to an Open Source Project on GitHub

This repository exists as a resource for people to learn how to contribute to open source in a safe and friendly environment. Feel free to watch the video series and then contribute to this project. See the contributing guidelines.

Usage

import {flatten, snakeToCamel, clone} from 'stack-overflow-copy-paste'
 
flatten([[1, 2,], 3]) // [1, 2, 3]
snakeToCamel('snake-case-string') // 'snakeCaseString'
 
const testObj = {a: 1, b: 2}
const copyObj = clone(testObj)

LICENSE

MIT

Keywords

none

install

npm i stack-overflow-copy-paste

Downloadsweekly downloads

310

version

1.94.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability