Skip to content
This repository has been archived by the owner on Aug 2, 2020. It is now read-only.

A micro-library that contains snippets of code useful for modifying strings and arrays. While it does modify the native prototype of String and Array, it does so with non-enumerable methods.

License

Notifications You must be signed in to change notification settings

neogeek-deprecated/iknowishouldnt.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

I Know I Shouldn't

A micro-library that contains snippets of code useful for modifying strings and arrays. While it does modify the native prototype of String and Array, it does so with non-enumerable methods.

Greenkeeper badge Latest Documentation

String.prototype.format

Returns a formatted string.

Character Type
s String
i Integer
d Digit
f Float
'rgba(%i, %i, %i, %f)'.format(255, 0, 0, 0.5);
'Hello %s'.format('World!');

Array.prototype.chunk

Split an array into smaller chunks.

[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11].chunk(2);

About

A micro-library that contains snippets of code useful for modifying strings and arrays. While it does modify the native prototype of String and Array, it does so with non-enumerable methods.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published