Skip to content
elcapo edited this page Nov 4, 2014 · 4 revisions

Common functions is a package that contains a set of useful functions that facilitates working with strings and other objects.

Code and tests

  • The translations for this functions are available for JavaScript.
  • The tests are available for JavaScript.

Working with Strings

Some of the functions included in this package are intended to facilitate the use of strings. addEvery, for instance, allows you to add a certain character into a string every given number of positions.

Having a string like abcdefghijklmnñopqrstuvwxyz, we can easily add a point (.) every two (2) characters, so we would have ab.cd.ef.gh.ij.kl.mn.ño.pq.rs.tu.vw.xy.z. This function is implicitely used when working with masks.

SEPA validations

  • [International Bank Account Numbers (IBAN)](International Bank Account Numbers (IBAN))

Spanish validations

Helpers

  • [Common functions](Common functions)
Clone this wiki locally