Our site uses cookies. Learn more about their purpose and change of settings in a browser If you are using the site, you give you consent to use cookies, according to current browser settings. Got it

Lodash - Number

  • Language JavaScript
Training tasks for Lodash Number.

Lodash Number Training


These are training tasks for Lodash Number. The exercise consist of a few simple tasks. You are supposed to implement a method, having only the method name and purpose provided.


The tests contain some usage of lodash methods. Make sure that datasets app/datasets.js for each method are correct.


It clamps number within the inclusive lower and upper bounds.


It checks if n is between the start and up to, but not including, the end. If the end is not specified, it’s set to start with the start then set to 0. If the start is greater than the end the params are swapped to support the negative ranges.


It produces a random number between the inclusive lower and upper bounds. If only one argument is provided a number between 0 and the given number is returned. If floating is true, or either lower or upper are floats, the floating-point number is returned instead of the integer.

Before you start

Read Lodash documentation at http://lodash.com/docs.


To install dependencies from package.json:

npm install

To run tests in development mode:

mocha --watch

To run jshint and tests:

npm test

To run jshint and tests with human readable output:

grunt --force

Start this test

Labnoratory Academy Ltd (Realskill) is a Data Controller. Personal data will be processed to facilitate IT skill test. More
... Przewidywane kategorie odbiorców danych: pracownicy Bulldogjob oraz Labnoratory Academy Ltd. Podmiotowi danych przysługuje prawo do żądania dostępu do danych dotyczących swojej osoby, ich sprostowania, usunięcia, ograniczenia przetwarzania, do przenoszenia danych oraz wniesienia skargi do organu nadzorczego.
Go to the top and begin