Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refractor 1st exampe _.each with for... of (void dependencies) #232

Closed
janat08 opened this issue Feb 21, 2017 · 1 comment
Closed

Refractor 1st exampe _.each with for... of (void dependencies) #232

janat08 opened this issue Feb 21, 2017 · 1 comment

Comments

@janat08
Copy link

janat08 commented Feb 21, 2017

Change _.each to for( var of list) since not every one has underscore and this is examples. Definitely present in 1st example

var users = [
      {name:"Normal User",email:"[email protected]",roles:[]},
      {name:"View-Secrets User",email:"[email protected]",roles:['view-secrets']},
      {name:"Manage-Users User",email:"[email protected]",roles:['manage-users']},
      {name:"Admin User",email:"[email protected]",roles:['admin']}
    ];

_.each(users, function (user) {
  var id;

  id = Accounts.createUser({
    email: user.email,
    password: "apple1",
    profile: { name: user.name }
  });
@mitar
Copy link
Member

mitar commented Oct 11, 2019

This is being done in #288.

@mitar mitar closed this as completed Oct 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants