{"id":11398,"date":"2018-04-11T12:58:00","date_gmt":"2018-04-11T11:58:00","guid":{"rendered":"https:\/\/agiliacenter.com\/?p=11398"},"modified":"2025-05-28T12:12:10","modified_gmt":"2025-05-28T11:12:10","slug":"bibliotecas-lodash-que-son-y-en-que-consisten","status":"publish","type":"post","link":"https:\/\/agiliacenter.com\/en\/bibliotecas-lodash-que-son-y-en-que-consisten\/","title":{"rendered":"Bibliotecas Lodash: \u00bfqu\u00e9 son y en qu\u00e9 consisten?"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"11398\" class=\"elementor elementor-11398\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-577a72e2 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"577a72e2\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-2a389971\" data-id=\"2a389971\" data-element_type=\"column\" data-settings=\"{&quot;starto_ext_is_scrollme&quot;:&quot;false&quot;,&quot;starto_ext_is_smoove&quot;:&quot;false&quot;,&quot;starto_ext_is_parallax_mouse&quot;:&quot;false&quot;,&quot;starto_ext_is_infinite&quot;:&quot;false&quot;}\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-5ab2cf4c elementor-widget elementor-widget-text-editor\" data-id=\"5ab2cf4c\" data-element_type=\"widget\" data-settings=\"{&quot;starto_ext_is_scrollme&quot;:&quot;false&quot;,&quot;starto_ext_is_smoove&quot;:&quot;false&quot;,&quot;starto_ext_is_parallax_mouse&quot;:&quot;false&quot;,&quot;starto_ext_is_infinite&quot;:&quot;false&quot;}\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>En el post de hoy analizaremos las ventajas de uso de las Bibliotecas\u00a0<a href=\"https:\/\/lodash.com\/\" target=\"_blank\" rel=\"noopener\"><strong>Lodash<\/strong><\/a>, una biblioteca moderna de utilidades de JavaScript que actualmente est\u00e1 dando mucho que hablar.\u00a0<strong>\u00a1Atentos!<\/strong><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-3500ef3 elementor-widget elementor-widget-heading\" data-id=\"3500ef3\" data-element_type=\"widget\" data-settings=\"{&quot;starto_ext_is_scrollme&quot;:&quot;false&quot;,&quot;starto_ext_is_smoove&quot;:&quot;false&quot;,&quot;starto_ext_is_parallax_mouse&quot;:&quot;false&quot;,&quot;starto_ext_is_infinite&quot;:&quot;false&quot;}\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">\u00bfQu\u00e9 son las bibliotecas Lodash?\n<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-4fd703b4 elementor-widget elementor-widget-text-editor\" data-id=\"4fd703b4\" data-element_type=\"widget\" data-settings=\"{&quot;starto_ext_is_scrollme&quot;:&quot;false&quot;,&quot;starto_ext_is_smoove&quot;:&quot;false&quot;,&quot;starto_ext_is_parallax_mouse&quot;:&quot;false&quot;,&quot;starto_ext_is_infinite&quot;:&quot;false&quot;}\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Lodash es una librer\u00eda de referencia en JavaScript.\u00a0Adem\u00e1s, es el sucesor m\u00e1s famoso de\u00a0<strong><a href=\"http:\/\/underscorejs.org\/\" target=\"_blank\" rel=\"noopener\">underscore.js<\/a><\/strong>.<\/p><p>Se usa para simplificar el manejo y edici\u00f3n de objetos, arrays, etc. ya que este proporciona muchos m\u00e9todos de utilidad para hacerlo.<\/p><p>A\u00a0su vez, simplificando este trabajo conseguimos que nuestro c\u00f3digo sea mucho m\u00e1s legible y f\u00e1cil de seguir para terceras personas.<\/p><p>Como bien se ha dicho antes, es el sucesor m\u00e1s famoso de\u00a0<strong><a href=\"http:\/\/underscorejs.org\/\" target=\"_blank\" rel=\"noopener\">underscore.js<\/a><\/strong>.\u00a0En un primer momento fue un simple \u201cfork\u201d y se a\u00f1adieron m\u00e1s funciones.<\/p><p>A d\u00eda de hoy ha sido redise\u00f1ada por completo.<\/p><p>La informaci\u00f3n en GitHub la tienes\u00a0<strong><a href=\"http:\/\/github.com\/lodash\/lodash\" target=\"_blank\" rel=\"noopener\">aqu\u00ed<\/a><\/strong>.<\/p><p>La documentaci\u00f3n la tienes\u00a0<strong><a href=\"https:\/\/lodash.com\/docs\/4.17.5\" target=\"_blank\" rel=\"noopener\">aqu\u00ed<\/a><\/strong>.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-605f7286 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"605f7286\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-59748f96\" data-id=\"59748f96\" data-element_type=\"column\" data-settings=\"{&quot;starto_ext_is_scrollme&quot;:&quot;false&quot;,&quot;starto_ext_is_smoove&quot;:&quot;false&quot;,&quot;starto_ext_is_parallax_mouse&quot;:&quot;false&quot;,&quot;starto_ext_is_infinite&quot;:&quot;false&quot;}\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-79f1a94e animation elementor-widget elementor-widget-image\" data-id=\"79f1a94e\" data-element_type=\"widget\" data-settings=\"{&quot;starto_ext_is_scrollme&quot;:&quot;false&quot;,&quot;starto_ext_is_smoove&quot;:&quot;false&quot;,&quot;starto_ext_is_parallax_mouse&quot;:&quot;false&quot;,&quot;starto_ext_is_infinite&quot;:&quot;false&quot;}\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img fetchpriority=\"high\" decoding=\"async\" width=\"1440\" height=\"960\" src=\"https:\/\/agiliacenter.com\/wp-content\/uploads\/2019\/04\/workflow-and-teamwork-concepts-with-colorful-PJF2EQR.jpg\" class=\"attachment-full size-full wp-image-6335\" alt=\"\" srcset=\"https:\/\/agiliacenter.com\/wp-content\/uploads\/2019\/04\/workflow-and-teamwork-concepts-with-colorful-PJF2EQR.jpg 1440w, https:\/\/agiliacenter.com\/wp-content\/uploads\/2019\/04\/workflow-and-teamwork-concepts-with-colorful-PJF2EQR-300x200.jpg 300w, https:\/\/agiliacenter.com\/wp-content\/uploads\/2019\/04\/workflow-and-teamwork-concepts-with-colorful-PJF2EQR-1024x683.jpg 1024w, https:\/\/agiliacenter.com\/wp-content\/uploads\/2019\/04\/workflow-and-teamwork-concepts-with-colorful-PJF2EQR-768x512.jpg 768w, https:\/\/agiliacenter.com\/wp-content\/uploads\/2019\/04\/workflow-and-teamwork-concepts-with-colorful-PJF2EQR-700x466.jpg 700w, https:\/\/agiliacenter.com\/wp-content\/uploads\/2019\/04\/workflow-and-teamwork-concepts-with-colorful-PJF2EQR-440x293.jpg 440w, https:\/\/agiliacenter.com\/wp-content\/uploads\/2019\/04\/workflow-and-teamwork-concepts-with-colorful-PJF2EQR-600x400.jpg 600w\" sizes=\"(max-width: 1440px) 100vw, 1440px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-14b0a2af elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"14b0a2af\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-7a45016b\" data-id=\"7a45016b\" data-element_type=\"column\" data-settings=\"{&quot;starto_ext_is_scrollme&quot;:&quot;false&quot;,&quot;starto_ext_is_smoove&quot;:&quot;false&quot;,&quot;starto_ext_is_parallax_mouse&quot;:&quot;false&quot;,&quot;starto_ext_is_infinite&quot;:&quot;false&quot;}\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-1efc8840 elementor-widget elementor-widget-heading\" data-id=\"1efc8840\" data-element_type=\"widget\" data-settings=\"{&quot;starto_ext_is_scrollme&quot;:&quot;false&quot;,&quot;starto_ext_is_smoove&quot;:&quot;false&quot;,&quot;starto_ext_is_parallax_mouse&quot;:&quot;false&quot;,&quot;starto_ext_is_infinite&quot;:&quot;false&quot;}\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Instalaci\u00f3n de Lodash<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-35d78fe8 elementor-widget elementor-widget-text-editor\" data-id=\"35d78fe8\" data-element_type=\"widget\" data-settings=\"{&quot;starto_ext_is_scrollme&quot;:&quot;false&quot;,&quot;starto_ext_is_smoove&quot;:&quot;false&quot;,&quot;starto_ext_is_parallax_mouse&quot;:&quot;false&quot;,&quot;starto_ext_is_infinite&quot;:&quot;false&quot;}\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Navegador web<br \/>NPM<br \/>npm install &#8211;save lodash<br \/>Uso en NodeJS (En nuestro file de Node, cargamos el componente)<br \/>const _ = require(&#8216;lodash&#8217;)<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-5775e332 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"5775e332\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-33 elementor-top-column elementor-element elementor-element-1e0badcc\" data-id=\"1e0badcc\" data-element_type=\"column\" data-settings=\"{&quot;starto_ext_is_scrollme&quot;:&quot;false&quot;,&quot;starto_ext_is_smoove&quot;:&quot;false&quot;,&quot;starto_ext_is_parallax_mouse&quot;:&quot;false&quot;,&quot;starto_ext_is_infinite&quot;:&quot;false&quot;}\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-4af7cf61 animation elementor-widget elementor-widget-image\" data-id=\"4af7cf61\" data-element_type=\"widget\" data-settings=\"{&quot;starto_ext_is_scrollme&quot;:&quot;true&quot;,&quot;starto_ext_scrollme_translatey&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:-20,&quot;sizes&quot;:[]},&quot;starto_ext_scrollme_disable&quot;:&quot;mobile&quot;,&quot;starto_ext_scrollme_smoothness&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:30,&quot;sizes&quot;:[]},&quot;starto_ext_scrollme_scalex&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:1,&quot;sizes&quot;:[]},&quot;starto_ext_scrollme_scaley&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:1,&quot;sizes&quot;:[]},&quot;starto_ext_scrollme_scalez&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:1,&quot;sizes&quot;:[]},&quot;starto_ext_scrollme_rotatex&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:0,&quot;sizes&quot;:[]},&quot;starto_ext_scrollme_rotatey&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:0,&quot;sizes&quot;:[]},&quot;starto_ext_scrollme_rotatez&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:0,&quot;sizes&quot;:[]},&quot;starto_ext_scrollme_translatex&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:0,&quot;sizes&quot;:[]},&quot;starto_ext_scrollme_translatez&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:0,&quot;sizes&quot;:[]},&quot;starto_ext_is_smoove&quot;:&quot;false&quot;,&quot;starto_ext_is_parallax_mouse&quot;:&quot;false&quot;,&quot;starto_ext_is_infinite&quot;:&quot;false&quot;}\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"683\" height=\"1024\" src=\"https:\/\/agiliacenter.com\/wp-content\/uploads\/2019\/04\/designers-working-on-a-project-together-in-an-EL9B6UT-683x1024.jpg\" class=\"attachment-large size-large wp-image-6351\" alt=\"\" srcset=\"https:\/\/agiliacenter.com\/wp-content\/uploads\/2019\/04\/designers-working-on-a-project-together-in-an-EL9B6UT-683x1024.jpg 683w, https:\/\/agiliacenter.com\/wp-content\/uploads\/2019\/04\/designers-working-on-a-project-together-in-an-EL9B6UT-200x300.jpg 200w, https:\/\/agiliacenter.com\/wp-content\/uploads\/2019\/04\/designers-working-on-a-project-together-in-an-EL9B6UT-768x1152.jpg 768w, https:\/\/agiliacenter.com\/wp-content\/uploads\/2019\/04\/designers-working-on-a-project-together-in-an-EL9B6UT-440x660.jpg 440w, https:\/\/agiliacenter.com\/wp-content\/uploads\/2019\/04\/designers-working-on-a-project-together-in-an-EL9B6UT-600x900.jpg 600w, https:\/\/agiliacenter.com\/wp-content\/uploads\/2019\/04\/designers-working-on-a-project-together-in-an-EL9B6UT.jpg 960w\" sizes=\"(max-width: 683px) 100vw, 683px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t<div class=\"elementor-column elementor-col-33 elementor-top-column elementor-element elementor-element-3aeb408e\" data-id=\"3aeb408e\" data-element_type=\"column\" data-settings=\"{&quot;starto_ext_is_scrollme&quot;:&quot;false&quot;,&quot;starto_ext_is_smoove&quot;:&quot;false&quot;,&quot;starto_ext_is_parallax_mouse&quot;:&quot;false&quot;,&quot;starto_ext_is_infinite&quot;:&quot;false&quot;}\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-37347067 animation elementor-widget elementor-widget-image\" data-id=\"37347067\" data-element_type=\"widget\" data-settings=\"{&quot;starto_ext_is_scrollme&quot;:&quot;true&quot;,&quot;starto_ext_scrollme_translatey&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:-40,&quot;sizes&quot;:[]},&quot;starto_ext_scrollme_disable&quot;:&quot;mobile&quot;,&quot;starto_ext_scrollme_smoothness&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:30,&quot;sizes&quot;:[]},&quot;starto_ext_scrollme_scalex&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:1,&quot;sizes&quot;:[]},&quot;starto_ext_scrollme_scaley&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:1,&quot;sizes&quot;:[]},&quot;starto_ext_scrollme_scalez&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:1,&quot;sizes&quot;:[]},&quot;starto_ext_scrollme_rotatex&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:0,&quot;sizes&quot;:[]},&quot;starto_ext_scrollme_rotatey&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:0,&quot;sizes&quot;:[]},&quot;starto_ext_scrollme_rotatez&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:0,&quot;sizes&quot;:[]},&quot;starto_ext_scrollme_translatex&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:0,&quot;sizes&quot;:[]},&quot;starto_ext_scrollme_translatez&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:0,&quot;sizes&quot;:[]},&quot;starto_ext_is_smoove&quot;:&quot;false&quot;,&quot;starto_ext_is_parallax_mouse&quot;:&quot;false&quot;,&quot;starto_ext_is_infinite&quot;:&quot;false&quot;}\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"683\" height=\"1024\" src=\"https:\/\/agiliacenter.com\/wp-content\/uploads\/2019\/04\/photographer-journalist-working-studion-agency-PPY4EGQ-683x1024.jpg\" class=\"attachment-large size-large wp-image-6352\" alt=\"\" srcset=\"https:\/\/agiliacenter.com\/wp-content\/uploads\/2019\/04\/photographer-journalist-working-studion-agency-PPY4EGQ-683x1024.jpg 683w, https:\/\/agiliacenter.com\/wp-content\/uploads\/2019\/04\/photographer-journalist-working-studion-agency-PPY4EGQ-200x300.jpg 200w, https:\/\/agiliacenter.com\/wp-content\/uploads\/2019\/04\/photographer-journalist-working-studion-agency-PPY4EGQ-768x1151.jpg 768w, https:\/\/agiliacenter.com\/wp-content\/uploads\/2019\/04\/photographer-journalist-working-studion-agency-PPY4EGQ-440x659.jpg 440w, https:\/\/agiliacenter.com\/wp-content\/uploads\/2019\/04\/photographer-journalist-working-studion-agency-PPY4EGQ-600x899.jpg 600w, https:\/\/agiliacenter.com\/wp-content\/uploads\/2019\/04\/photographer-journalist-working-studion-agency-PPY4EGQ.jpg 961w\" sizes=\"(max-width: 683px) 100vw, 683px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t<div class=\"elementor-column elementor-col-33 elementor-top-column elementor-element elementor-element-7bfb0a04\" data-id=\"7bfb0a04\" data-element_type=\"column\" data-settings=\"{&quot;starto_ext_is_scrollme&quot;:&quot;false&quot;,&quot;starto_ext_is_smoove&quot;:&quot;false&quot;,&quot;starto_ext_is_parallax_mouse&quot;:&quot;false&quot;,&quot;starto_ext_is_infinite&quot;:&quot;false&quot;}\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-6738cbd0 animation elementor-widget elementor-widget-image\" data-id=\"6738cbd0\" data-element_type=\"widget\" data-settings=\"{&quot;starto_ext_is_scrollme&quot;:&quot;true&quot;,&quot;starto_ext_scrollme_translatey&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:-60,&quot;sizes&quot;:[]},&quot;starto_ext_scrollme_disable&quot;:&quot;mobile&quot;,&quot;starto_ext_scrollme_smoothness&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:30,&quot;sizes&quot;:[]},&quot;starto_ext_scrollme_scalex&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:1,&quot;sizes&quot;:[]},&quot;starto_ext_scrollme_scaley&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:1,&quot;sizes&quot;:[]},&quot;starto_ext_scrollme_scalez&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:1,&quot;sizes&quot;:[]},&quot;starto_ext_scrollme_rotatex&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:0,&quot;sizes&quot;:[]},&quot;starto_ext_scrollme_rotatey&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:0,&quot;sizes&quot;:[]},&quot;starto_ext_scrollme_rotatez&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:0,&quot;sizes&quot;:[]},&quot;starto_ext_scrollme_translatex&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:0,&quot;sizes&quot;:[]},&quot;starto_ext_scrollme_translatez&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:0,&quot;sizes&quot;:[]},&quot;starto_ext_is_smoove&quot;:&quot;false&quot;,&quot;starto_ext_is_parallax_mouse&quot;:&quot;false&quot;,&quot;starto_ext_is_infinite&quot;:&quot;false&quot;}\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"683\" height=\"1024\" src=\"https:\/\/agiliacenter.com\/wp-content\/uploads\/2019\/04\/female-executive-working-on-computer-in-office-BWRDXJA-683x1024.jpg\" class=\"attachment-large size-large wp-image-6353\" alt=\"\" srcset=\"https:\/\/agiliacenter.com\/wp-content\/uploads\/2019\/04\/female-executive-working-on-computer-in-office-BWRDXJA-683x1024.jpg 683w, https:\/\/agiliacenter.com\/wp-content\/uploads\/2019\/04\/female-executive-working-on-computer-in-office-BWRDXJA-200x300.jpg 200w, https:\/\/agiliacenter.com\/wp-content\/uploads\/2019\/04\/female-executive-working-on-computer-in-office-BWRDXJA-768x1151.jpg 768w, https:\/\/agiliacenter.com\/wp-content\/uploads\/2019\/04\/female-executive-working-on-computer-in-office-BWRDXJA-440x659.jpg 440w, https:\/\/agiliacenter.com\/wp-content\/uploads\/2019\/04\/female-executive-working-on-computer-in-office-BWRDXJA-600x899.jpg 600w, https:\/\/agiliacenter.com\/wp-content\/uploads\/2019\/04\/female-executive-working-on-computer-in-office-BWRDXJA.jpg 961w\" sizes=\"(max-width: 683px) 100vw, 683px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-2dab7a41 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"2dab7a41\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-4ca4a1\" data-id=\"4ca4a1\" data-element_type=\"column\" data-settings=\"{&quot;starto_ext_is_scrollme&quot;:&quot;false&quot;,&quot;starto_ext_is_smoove&quot;:&quot;false&quot;,&quot;starto_ext_is_parallax_mouse&quot;:&quot;false&quot;,&quot;starto_ext_is_infinite&quot;:&quot;false&quot;}\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-5bd51eb1 elementor-widget elementor-widget-heading\" data-id=\"5bd51eb1\" data-element_type=\"widget\" data-settings=\"{&quot;starto_ext_is_scrollme&quot;:&quot;false&quot;,&quot;starto_ext_is_smoove&quot;:&quot;false&quot;,&quot;starto_ext_is_parallax_mouse&quot;:&quot;false&quot;,&quot;starto_ext_is_infinite&quot;:&quot;false&quot;}\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Forma tradicional vs Lodash<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-4c414b35 elementor-widget elementor-widget-text-editor\" data-id=\"4c414b35\" data-element_type=\"widget\" data-settings=\"{&quot;starto_ext_is_scrollme&quot;:&quot;false&quot;,&quot;starto_ext_is_smoove&quot;:&quot;false&quot;,&quot;starto_ext_is_parallax_mouse&quot;:&quot;false&quot;,&quot;starto_ext_is_infinite&quot;:&quot;false&quot;}\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>A continuaci\u00f3n, vamos a ver algunos ejemplos peque\u00f1os sobre c\u00f3mo se ejecutar\u00edan ciertas funciones con Lodash y c\u00f3mo las har\u00edamos si no cont\u00e1semos con la misma.<\/p><ol><li>Devolver el valor de una clave del primer item de un array que es el valor de otra clave:<pre class=\"lang:js decode:true \">\/\/ Obtener el nombre del primer hermano de cada persona\nvar personas = [{\n    \"nombre\": \"Jose Luis\",\n    \"hermanos\": [{\"nombre\":\"David\"}, {\"nombre\": \"Sonia\"}]\n}, {\n    \"nombre\": \"Alfonso Manuel\",\n    \"hermanos\": [{\"nombre\":\"Gustavo\"}, {\"nombre\": \"Juan\"}]\n}];\n\n\/\/ Array's map method.\nvar nombres = personas.map(function(item){\n   return item.hermanos[0].nombre;\n});\n\/\/ [ 'David', 'Gustavo' ]\n\n\/\/ Lodash\nvar nombresBis = _.map(personas, 'hermanos[0].nombre');\n\/\/ [ 'David', 'Gustavo' ]<\/pre><\/li><li>Obtener n\u00famero aleatorio entre dos n\u00fameros:<pre class=\"lang:js decode:true \">\/\/ Obtener un n\u00famero aleatorio entre 15 y 20.\n\n\/\/ Funci\u00f3n nativa\nfunction getRandomNumber(min, max){\n    return Math.floor(Math.random() * (max - min + 1)) + min;\n}\n\nvar random = getRandomNumber(15, 20);\n\/\/ ej: 16\n\n\/\/ Lodash\nvar randomTwo = _.random(15, 20);\n\/\/ ej: 19<\/pre><\/li><li>Extend object:<pre class=\"lang:js decode:true \">\/\/ Adding extend function to Object.prototype\nObject.prototype.extend = function(obj) {\n    for (var i in obj) {\n        if (obj.hasOwnProperty(i)) {\n            this[i] = obj[i];\n        }\n    }\n};\n\nvar objA = {\"nombre\": \"Jose Luis\", \"coche\": \"BMW\"};\nvar objB = {\"nombre\": \"Alfonso\", \"edad\": 24};\n\nobjA.extend(objB);\n\/\/ {\"nombre\": \"Alfonso\", \"edad\": 24, \"coche\": \"BMW\"}\n\n\/\/ Lodash\n_.assign(objA, objB);\n\/\/ {\"nombre\": \"Alfonso\", \"edad\": 24, \"coche\": \"BMW\"}<\/pre><\/li><li>Obtener \u00faltimo elemento:<pre class=\"lang:js decode:true \">var personas = [{\n    \"nombre\": \"Jose Luis\"\n}, {\n    \"nombre\": \"Alfonso Manuel\"\n}, {\n\t\"nombre\": \"Domingo\"\n}];\n\nvar last = personas[personas.length - 1];\n\/\/ Domingo\n\nvar lastTwo = _.last(personas);\n\/\/ Domingo<\/pre><\/li><\/ol>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-17d003be elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"17d003be\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-196fd840\" data-id=\"196fd840\" data-element_type=\"column\" data-settings=\"{&quot;starto_ext_is_scrollme&quot;:&quot;false&quot;,&quot;starto_ext_is_smoove&quot;:&quot;false&quot;,&quot;starto_ext_is_parallax_mouse&quot;:&quot;false&quot;,&quot;starto_ext_is_infinite&quot;:&quot;false&quot;}\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-2aaa0677 elementor-widget elementor-widget-heading\" data-id=\"2aaa0677\" data-element_type=\"widget\" data-settings=\"{&quot;starto_ext_is_scrollme&quot;:&quot;false&quot;,&quot;starto_ext_is_smoove&quot;:&quot;false&quot;,&quot;starto_ext_is_parallax_mouse&quot;:&quot;false&quot;,&quot;starto_ext_is_infinite&quot;:&quot;false&quot;}\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Conclusiones<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-15c2e2f3 elementor-widget elementor-widget-text-editor\" data-id=\"15c2e2f3\" data-element_type=\"widget\" data-settings=\"{&quot;starto_ext_is_scrollme&quot;:&quot;false&quot;,&quot;starto_ext_is_smoove&quot;:&quot;false&quot;,&quot;starto_ext_is_parallax_mouse&quot;:&quot;false&quot;,&quot;starto_ext_is_infinite&quot;:&quot;false&quot;}\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Lodash\u00a0es, sin lugar a dudas, una muy buena biblioteca\u00a0y de gran utilidad. Continuar\u00e9 us\u00e1ndola en todos mis proyectos de NodeJS.<\/p><p>Asimismo, destacar\u00eda ventajas como la\u00a0<strong>reducci\u00f3n de la cantidad de c\u00f3digo repetitivo<\/strong>.<\/p><p>Adem\u00e1s,\u00a0tambi\u00e9n\u00a0<strong>mejora la claridad de la l\u00f3gica de mi aplicaci\u00f3n<\/strong>.<\/p><p>Sin embargo, para\u00a0lo que m\u00e1s me ha servido ha sido para pensar de una\u00a0manera m\u00e1s funcional. Desmenuzo mi aplicaci\u00f3n en m\u00f3dulos m\u00e1s peque\u00f1os con un enfoque singular y sin efectos secundarios.<\/p><p>Finalmente, esta modularidad me permite escribir un c\u00f3digo de m\u00e1s calidad.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-1a67f3cb elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"1a67f3cb\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-31372de0\" data-id=\"31372de0\" data-element_type=\"column\" data-settings=\"{&quot;starto_ext_is_scrollme&quot;:&quot;false&quot;,&quot;starto_ext_is_smoove&quot;:&quot;false&quot;,&quot;starto_ext_is_parallax_mouse&quot;:&quot;false&quot;,&quot;starto_ext_is_infinite&quot;:&quot;false&quot;}\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-713309c1 elementor-widget elementor-widget-html\" data-id=\"713309c1\" data-element_type=\"widget\" data-settings=\"{&quot;starto_ext_is_scrollme&quot;:&quot;false&quot;,&quot;starto_ext_is_smoove&quot;:&quot;false&quot;,&quot;starto_ext_is_parallax_mouse&quot;:&quot;false&quot;,&quot;starto_ext_is_infinite&quot;:&quot;false&quot;}\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<script id=\"mcjs\">!function(c,h,i,m,p){m=c.createElement(h),p=c.getElementsByTagName(h)[0],m.async=1,m.src=i,p.parentNode.insertBefore(m,p)}(document,\"script\",\"https:\/\/chimpstatic.com\/mcjs-connected\/js\/users\/75a6184da5d3774bd7ca93769\/b54d955464a1e456262be535e.js\");<\/script>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>En el post de hoy analizaremos las ventajas de uso de las Bibliotecas&nbsp;Lodash, una biblioteca moderna de utilidades de JavaScript que actualmente est\u00e1 dando mucho que hablar.&nbsp;\u00a1Atentos! \u00bfQu\u00e9 son las bibliotecas Lodash? Lodash es una librer\u00eda de referencia en JavaScript.&nbsp;Adem\u00e1s, [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":11402,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-11398","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-sin-categoria"],"_links":{"self":[{"href":"https:\/\/agiliacenter.com\/en\/wp-json\/wp\/v2\/posts\/11398","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/agiliacenter.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/agiliacenter.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/agiliacenter.com\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/agiliacenter.com\/en\/wp-json\/wp\/v2\/comments?post=11398"}],"version-history":[{"count":8,"href":"https:\/\/agiliacenter.com\/en\/wp-json\/wp\/v2\/posts\/11398\/revisions"}],"predecessor-version":[{"id":13097,"href":"https:\/\/agiliacenter.com\/en\/wp-json\/wp\/v2\/posts\/11398\/revisions\/13097"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/agiliacenter.com\/en\/wp-json\/wp\/v2\/media\/11402"}],"wp:attachment":[{"href":"https:\/\/agiliacenter.com\/en\/wp-json\/wp\/v2\/media?parent=11398"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/agiliacenter.com\/en\/wp-json\/wp\/v2\/categories?post=11398"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/agiliacenter.com\/en\/wp-json\/wp\/v2\/tags?post=11398"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}