Skip to content

Instantly share code, notes, and snippets.

// just pass an object with a especific length property
Array.from({ length: 50 }, () => Math.floor(Math.random() * 12) + 1)
@2JN
2JN / NumeroALetras.js
Last active November 2, 2016 20:34 — forked from alfchee/NumeroALetras.js
Código en JavaScript que convierte números a letras, bastante útil para formularios de documentos contables y similares
/*************************************************************/
// NumeroALetras
// The MIT License (MIT)
//
// Copyright (c) 2015 Luis Alfredo Chee
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
import angular from 'angular';
import angularMeteor from 'angular-meteor';
import uiRouter from 'angular-ui-router';
import { Meteor } from 'meteor/meteor';
import template from './nuevoEmpleado.html';
import { Empleados } from '../../../api/empleados';
class NuevoEmpleadoCtrl {