angular for objetkeys pipe
Key: {{item.key}} and Value: {{item.value}} Here is what the above code is Doing: 1. We are using the keyvalue pipe …
Key: {{item.key}} and Value: {{item.value}} Here is what the above code is Doing: 1. We are using the keyvalue pipe …
// method to extend String to call reduce the same way as an Array String.prototype.reduce = function () { return …
// function that caclulates BMI function bmiCalc(weight, height){ var bmiResult = weight / Math.pow(height, 2); var roundedResult = Math.floor(bmiResult); return …
according to http://api.jquery.com/jQuery.isNumeric/ it’s :jQuery.isNumeric(value) so, it should be $.isNumeric($(“#EmpNum”).val()) Here is what the above code is Doing: 1. It’s …
async function getPosts() { const response = await fetch(‘https://jsonplaceholder.typicode.com/posts?_limit=3&_page=1’); const data = await response.json(); return data Here is what the …
var _oldFn = GC.Spread.Sheets.CellTypes.Base.prototype.getAutoFitWidth; GC.Spread.Sheets.CellTypes.Base.prototype.getAutoFitWidth = function() { let minWidth = 100; let width = _oldFn.apply(this, arguments); return Math.max(minWidth, width); …
var x = []; var y = [1,2,3,4]// see the change here var i; for (i = 0; i < ...
//add 30 minutes to date var minutesToAdd=30; var currentDate = new Date(); var futureDate = new Date(currentDate.getTime() + minutesToAdd*60000); Here …
app.use(‘/’, express.static(‘public’, { index: ‘index.html’ })); Here is what the above code is Doing: 1. We’re requiring the express module …