Data.js mini framework for beginners

What is Data.js?

Data.js is a mini-framework that runs on Node.js. It is mainly programmed to work with arrays. This framework is able to display arrays in different formats and again give information about how much information is in the a…


This content originally appeared on DEV Community and was authored by Jahongir Sobirov

Data.js

What is Data.js?

Data.js is a mini-framework that runs on Node.js. It is mainly programmed to work with arrays. This framework is able to display arrays in different formats and again give information about how much information is in the array. Its syntax is very simple.

In Data.js we create a program called "subgroup of numbers"

We can download Data.js from github. The location of the downloaded folder: (all guides)

|___bin
      |___data.js
      |___test.js
|___docs
      |___config.yml
      |___index.md
|___LICENSE
|___README.md

We attach the data.js file in the bin folder to our program (Of course we can copy the bin folder from the uploaded folder to the folder we are creating).

const Data = require(".\bin\data.js"); //importing data.js

Now it's your turn to create the program:

const Data = require(".\bin\data.js");
var app = new Data([25,9,16,100],{
   get: "false",
   getLenght: false,
   join: false,
   copy: false,
   constructor: false,
   entries: false,
   reverse: false,
   sort: false,
   fill: false,
   shift: false,
   map: Math.sqrt,
   pop: false
});

Output:

[5,3,4,10] 


This content originally appeared on DEV Community and was authored by Jahongir Sobirov


Print Share Comment Cite Upload Translate
APA
Jahongir Sobirov | Sciencx (2022-10-02T14:16:17+00:00) » Data.js mini framework for beginners. Retrieved from https://www.scien.cx/2021/05/02/data-js-mini-framework-for-beginners/.
MLA
" » Data.js mini framework for beginners." Jahongir Sobirov | Sciencx - Sunday May 2, 2021, https://www.scien.cx/2021/05/02/data-js-mini-framework-for-beginners/
HARVARD
Jahongir Sobirov | Sciencx Sunday May 2, 2021 » Data.js mini framework for beginners., viewed 2022-10-02T14:16:17+00:00,<https://www.scien.cx/2021/05/02/data-js-mini-framework-for-beginners/>
VANCOUVER
Jahongir Sobirov | Sciencx - » Data.js mini framework for beginners. [Internet]. [Accessed 2022-10-02T14:16:17+00:00]. Available from: https://www.scien.cx/2021/05/02/data-js-mini-framework-for-beginners/
CHICAGO
" » Data.js mini framework for beginners." Jahongir Sobirov | Sciencx - Accessed 2022-10-02T14:16:17+00:00. https://www.scien.cx/2021/05/02/data-js-mini-framework-for-beginners/
IEEE
" » Data.js mini framework for beginners." Jahongir Sobirov | Sciencx [Online]. Available: https://www.scien.cx/2021/05/02/data-js-mini-framework-for-beginners/. [Accessed: 2022-10-02T14:16:17+00:00]
rf:citation
» Data.js mini framework for beginners | Jahongir Sobirov | Sciencx | https://www.scien.cx/2021/05/02/data-js-mini-framework-for-beginners/ | 2022-10-02T14:16:17+00:00
https://github.com/addpipe/simple-recorderjs-demo