We will be using following information throughout this article:
index_name : customersindex_type : personalcustomer will have name,age,gender,email,phone,address,city,state as fields in schema for now
| /** | |
| * fetches the second last iteration | |
| * @customFunction | |
| */ | |
| function getSecondLastIteration(j8, l8, m8) { | |
| // j8 - dinman value | |
| // l8 - ardhyam | |
| // m8 - ishtakaal | |
| function toVipal(ghati, pal, vipal) { | 
| const { | |
| MongoClient, ObjectId | |
| } = require("mongodb"); | |
| const { | |
| Client | |
| } = require('@elastic/elasticsearch'); | |
| const Transform = require("stream").Transform; | |
| const defaultElasticSettings = { | 
| const http = require('http'), | |
| stream = require('stream'), | |
| AWS = require('aws-sdk'), | |
| http = require('http'); | |
| const uploadStream = ({ Bucket, Key }) => { | |
| const s3 = new AWS.S3(); | |
| const pass = new stream.PassThrough(); | |
| return { | |
| writeStream: pass, | 
| const http = require('http'); | |
| const fs = require('fs'); | |
| const path = require('path'); | |
| const https = require("https"); | |
| const querystring = require('querystring'); | |
| const td = new Date("2018-09-01") | |
| const config = { | |
| "userId" : "HhjEtD0rD", | |
| "endpoints" : { | 
using mocha/chai/sinon for node.js unit-tests? check out my utility: mocha-stirrer to easily reuse test components and mock require dependencies
| function main(input) { | |
| //Enter your code here | |
| inputs=input.split("\n"); | |
| var t=parseInt(inputs[0]); | |
| var i=1; | |
| var j; | |
| while(t--) | |
| { | 
| function main(input) { | |
| var inputs=input.split(" "); | |
| function comp(a,b){ | |
| console.log("a, b : ", a, b) | |
| var ab=a.concat(b); | |
| var ba=b.concat(a); | |
| console.log("ab, ba : ", ab, ba) | |
| package main | |
| import ( | |
| "fmt" | |
| "errors" | |
| ) | |
| type Node struct { | |
| value int32 | |
| next *Node | 
| package main | |
| import ( | |
| "fmt" | |
| "errors" | |
| ) | |
| func getMax(arr []int) int { | |
| var max int = 0 |