This file contains 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
[{ | |
id: 1, | |
title: | |
'Missi Roti Nachos With Jodhpuri Mirch Salsa And Dahi Ki Chutney', | |
description: | |
'The missi roti nachos is actually inspired by childhood memories. My mom used to accumulate leftover rotis through…', | |
postDate: "2019-12-31", | |
author: 'The Scroll Food Team', | |
authorImgSrc: | |
'http://design.scroll.team/img/stack/homepage/brand-logo.png', |
This file contains 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
{ | |
name: 'deepak', | |
place: 'pune' | |
} |
This file contains 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
export default { | |
name: 'RangeSlider', | |
mixins: [], // share common functionality with component mixins | |
extends: {}, // compose new components | |
props: {}, // component properties/variables | |
data() {}, // variables | |
computed: {}, | |
components: {}, // when component uses other components | |
watch: {}, // watch wariables | |
methods: {}, // methods |
This file contains 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
let nestedArray = [[1,2,[3]],4]; | |
let resultArray = []; | |
let nestedArrayToFlatArray = (arr) => { | |
arr.map((element, index, array) => { | |
if(Array.isArray(element)) { | |
nestedArrayToFlatArray(element); | |
} else { | |
resultArray.push(element); |
This file contains 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
import sum, { name } form 'example'; | |
// import { default as sum, name } from 'example'; | |
console.log(name); // 'deepak' | |
console.log(sum(1, 2)); // 3 |
This file contains 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
export let name = 'deepak'; | |
export default function(num1, num2) { | |
return num1 + num2; | |
} |
This file contains 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
import sum from 'example'; | |
console.log(sum(1, 2)); // 3 |
This file contains 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
export default function(num1, num2) { | |
return num1 + num2; | |
} |
This file contains 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
import * as example from 'example'; | |
console.log(example.sum(1, 2)); // 3 | |
console.log(example.name); // 'deepak' | |
console.log(example.magicNumber); // 7 |
This file contains 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
import { sum, name, magicNumber } from 'example'; | |
console.log(name); // 'deepak' | |
console.log(sum(1, 2)); // 3 | |
console.log(sum(1, magicNumber)); // 8 |
NewerOlder