This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const pelis = require("./pelis.js"); | |
| function main() { | |
| const peliculas = pelis.getPeliculas(); | |
| if (process.argv[2] === "--sort") { | |
| peliculas.sort((a, b) => { | |
| const prop = process.argv[3]; | |
| return typeof a[prop] === 'number' | |
| ? a[prop] - b[prop] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const miPlaylist = [ | |
| { | |
| titulo: "Programar ya fue (?)", | |
| url: "https://www.youtube.com/watch?v=cD_-0KEDEDw", | |
| resumen: "Objetivo de la carrera, plan de estudios y modalidad. Qué son los devs, Cómo funcionan las empresas de software", | |
| tags: ["JavaScript", "Funciones", "Apx"], | |
| visto: true, | |
| dificultad: 1, | |
| }, | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const canciones = [ | |
| { | |
| titulo: "Mary on a Cross", | |
| album: "Seven Inches of Satanic Panic", | |
| artista: "Ghost", | |
| fechaDeLanzamiento: "2019", | |
| genero: "Rock, Alternativa/independiente, Metal", | |
| }, | |
| { | |
| titulo: "On the Floor", |