Skip to content

Instantly share code, notes, and snippets.

Avatar

Yogesh Chavan myogeshchavan97

View GitHub Profile
View toppings.json
[
{
"name": "Capsicum",
"_id": "608c43a5f9b60c077d566e74",
"Toppings": "Capsicum",
"published_at": "2021-04-30T17:51:37.192Z",
"createdAt": "2021-04-30T17:51:33.225Z",
"updatedAt": "2021-05-02T09:16:59.480Z",
"__v": 0,
"price": 1.2,
View products.json
[
{
"is_veg": true,
"quantity": 0,
"_id": "608c3f64ca23f106f7919dc5",
"name": "Margherita",
"description": "Classic delight with 100% real mozzarella cheese",
"rating": 4,
"price": 100,
"published_at": "2021-04-30T17:33:28.204Z",
View categories.json
[
{
"_id": "608bf734770cc4002db2f0cb",
"cat_title": "Pizza",
"published_at": "2021-04-30T12:25:32.112Z",
"createdAt": "2021-04-30T12:25:24.404Z",
"updatedAt": "2021-05-31T11:31:15.533Z",
"__v": 0,
"has_veg_nonveg_option": true,
"image": {
@myogeshchavan97
myogeshchavan97 / lodash_merge.js
Created May 26, 2021
Merge using lodash merge
View lodash_merge.js
const user = {
name: "David",
phone: 122345678,
location: {
city: "Camden",
country: "UK"
}
};
const updates = {
name: "David",
@myogeshchavan97
myogeshchavan97 / spread_operator.js
Created May 26, 2021
Merge using spread operator
View spread_operator.js
const user = {
name: 'David',
phone: 122345678,
location: {
city: 'Camden',
country: 'UK'
}
};
const updates = {
name: 'David',
@myogeshchavan97
myogeshchavan97 / object_assign.js
Created May 26, 2021
Merge using Object assign
View object_assign.js
const user = {
name: 'David',
phone: 122345678,
location: {
city: 'Camden',
country: 'UK'
}
};
const updates = {
name: 'David',
View user_updates.js
const updates = {
name: "David",
phone: 123456789,
location: {
city: "Smithfield"
}
};