10 examples of 'jquery get name' in JavaScript

Every line of 'jquery get name' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.

All examples are scanned by Snyk Code

By copying the Snyk Code Snippets you agree to
this disclaimer
69$InitName():string{
70 return option.name
71}
Important

Use secure code every time

Secure your code as it's written. Use Snyk Code to scan source code in minutes – no build needed – and fix issues immediately. Enable Snyk Code

45export function getName(element) {
46 return getBusinessObject(element).name;
47}
55value: function getName() {
56 return _swap.constants.COINS.btc + '2' + _swap.constants.COINS.eth;
57}
94function ieFunctionNameWorkaround(constructor) {
95 // This workaround is based on code by Jason Bunting et al, http://stackoverflow.com/a/332429
96 var funcNameRegex = /function\s+(.{1,})\s*\(/;
97 var results = (funcNameRegex).exec((constructor).toString());
98 return (results && results.length > 1) ? results[1] : "";
99}
43function getName(obj) {
44 var name, className;
45
46 if (obj.hasOwnProperty &&
47 obj.hasOwnProperty(me.hiddenKey)) {
48 return obj[me.hiddenKey];
49 }
50
51 name = obj.hasOwnProperty &&
52 obj.hasOwnProperty('name') &&
53 typeof obj.name === 'string' &&
54 obj.name;
55
56 className = hasAClassName(obj);
57 if (!name && className) {
58 name = className;
59 }
60
61 name = name || _.uniqueId();
62 name = name.replace(/[\. ]/g, '-');
63 return name;
64}
246export function getName(obj: object | undefined, language: Language = defaultLanguage): string | undefined {
247 if (language === 'en') {
248 return getEnglishName(obj);
249 } else if (language === 'fr') {
250 return getFrenchName(obj);
251 } else {
252 return undefined;
253 }
254}
384function fn$(name){
385 textFormat[name] = function(it){
386 return "<span class='" + name + "'>" + it + "</span>";
387 };
388}
52function get(name) {
53 if (typeof (Storage) !== 'undefined') {
54 return localStorage.getItem(name)
55 } else {
56 window.alert('Please use a modern browser to properly view this template!')
57 }
58}
111$alloc_widget_name(prefix) {
112 prefix = _.camelCase(prefix);
113 for (var i = 1; i < 10000; i++) {
114 var name = prefix + i;
115 var w = this.$find_widget(name);
116 if (!w) {
117 return name;
118 }
119 }
120 $hope.error("UI", "Too many widget");
121 return "";
122}
43function get(name) {
44 socket.emit('signalk', JSON.stringify({'name': name, 'method': 'get'}));
45}

Related snippets