Tagged Questions
0
votes
0answers
25 views
Mongoose not saving nested object
I'm puzzled as of why Mongoose isn't saving my object:
var objectToSave = new ModelToSave({
_id : req.params.id,
Item : customObject.Item //doesn't save with customObject.getItem() neither
});
...
0
votes
2answers
19 views
Object type is the name of the String rather than the String itself when working with process.argv in Node
I'm working with Node, and I'm attempting to use a parameter passed in via the command line as a string. My current code is:
if (process.argv.length > 2) {
var domain = ...
-1
votes
2answers
39 views
how to delete a key from object which has value as undefined
I have a javascript object which has a large amount of key value pairs in it, among them some of the keys have a value as undefined. I what to delete the keys which have the value as undefined.
How ...
1
vote
1answer
103 views
which way is correct? Javascript Objects (nodejs)
I love javascript and Node, but when i declare Objects.. i don't know what is best practice and high performance. Im interest high performance.
"use strict";
module.exports = SignUpBusiness;
...
4
votes
2answers
468 views
What's the recommended way of creating objects in NodeJS?
I'm building a composite for request module, however I'm not sure what's the best practice regarding building objects in JS for Node.
Option 1:
function RequestComposite(request) {
return {
...
0
votes
1answer
194 views
Getting an Objects nested value from an array of nested properties
I have a situation where I need to zip two Objects together retaining both of the values. I can iterate through both the objects and build an array of all the keys.
var traverse = function (obj, ...
0
votes
2answers
261 views
Coffeescript / Node.js - How to remove elements from an object based on comparison with DB
I'm working on a project which will post periodic XML updates for users. I'm attempting to suppress information which hasn't changed since the last update.
Within node.js, I have assembled a user ...
8
votes
2answers
8k views
sending a javascript object through websockets with
Hi all I'm trying to send a javascript object through websockets:
the faye-websockets documentation says:
send(message) accepts either a String or a Buffer and sends a text or binary message over ...
2
votes
1answer
3k views
JSON Error when parsing “… has no method 'replace'”
Let me preface this with the admission that I am a complete programming and javascript noob and that fact is the source of my trouble.
I'm trying to populate a large array of custom objects from a ...